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 (10), an operation panel (30) configured to set an imaging condition, an X-ray irradiation control unit (92a) configured to control X-ray irradiation in accordance with the imaging condition, an error detecting unit (92c), 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 (92d) configured to interrupt the X-ray irradiation when the occurrence of the error is detected, and a recovery unit (92j) configured to resume the X-ray irradiation for ensuring the X-ray amount defined by the imaging condition.