Provided is an X-ray device which can perform X-ray imaging without an object being subjected to ineffective exposure even when the X-ray imaging is interrupted by the occurrence of an error. The X-ray device is provided with an X-ray generator, an operation panel configured to set an imaging condition, an X-ray irradiation control unit configured to control X-ray irradiation in accordance with the imaging condition, an error detecting unit, configured to, during the X-ray irradiation, detect the occurrence of an error by which the X-ray irradiation should be interrupted, an irradiation interrupting unit configured to interrupt the X-ray irradiation when the occurrence of the error is detected, and a recovery unit configured to resume the X-ray irradiation for ensuring the X-ray amount defined by the imaging condition.