An electronic device comprising: a monitoring means configured to monitor a voltage of a first terminal that receives power supplied from a power supply apparatus ; a second terminal configured to communicate with the power supply apparatus; a communication means configured to perform a communication with the power supply apparatus via the second terminal , wherein the power supply apparatus conforms to a universal serial bus power delivery (USB PD) standard and the communication means performs USB PD communication with the power supply apparatus ; and a control means configured to request, via the communication means , the power supply apparatus to apply a predetermined voltage to the first terminal , wherein the the communication means is configured to receive first information indicating an acceptance of the request in response to the request and receive second information indicating a completion of the application of the predetermined voltage, wherein the control means is configured to perform a detection that a voltage increase per unit time of the first terminal is not less than a first predetermined value and to perform a detection that the voltage of the first terminal is not less than a second predetermined value in a period from a reception of the first information from the power supply apparatus via the communication means until a reception of the second information from the power supply apparatus via the communication means , wherein the control means is configured to perform control so as to stop the power supply from the power supply apparatus if it is detected that the voltage increase per unit time of the first terminal is not less than the first predetermined value and to stop the power supply from the power supply apparatus if it is detected that the voltage of the first terminal is not less than the second predetermined value. a monitoring means configured to monitor a voltage of a first terminal that receives power supplied from a power supply apparatus ; a second terminal configured to communicate with the power supply apparatus; a communication means configured to perform a communication with the power supply apparatus via the second terminal , wherein the power supply apparatus conforms to a universal serial bus power delivery (USB PD) standard and the communication means performs USB PD communication with the power supply apparatus ; and a control means configured to request, via the communication means , the power supply apparatus to apply a predetermined voltage to the first terminal , wherein the the communication means is configured to receive first information indicating an acceptance of the request in response to the request and receive second information indicating a completion of the application of the predetermined voltage, wherein the control means is configured to perform a detection that a voltage increase per unit time of the first terminal is not less than a first predetermined value and to perform a detection that the voltage of the first terminal is not less than a second predetermined value in a period from a reception of the first information from the power supply apparatus via the communication means until a reception of the second information from the power supply apparatus via the communication means , wherein the control means is configured to perform control so as to stop the power supply from the power supply apparatus if it is detected that the voltage increase per unit time of the first terminal is not less than the first predetermined value and to stop the power supply from the power supply apparatus if it is detected that the voltage of the first terminal is not less than the second predetermined value. <EOS>