When x-ray photographing suspends with error generation even, in order to offer the x-ray device which can do x-ray photographing without making null exposure the suffering inspection body cause, x-ray generation section in the manipulation panel following 30 which configurates 10 and photographing condition and photographing condition, when in x-ray lighting control section 92a and while irradiating the x-ray control the lighting of the x-ray, error sensing station 92c and the generation of error which detect the generation of the error which should suspend the lighting of the x-ray are detected, with the lighting suspension section 92d which suspends the lighting of the x-ray and the photographing condition which is configurated stipulationIt guarantees the x-ray tonnage which is done, the rehabilitation section 92j which makes the lighting of the x-ray reopen and, it has.エラー発生によりX線撮影が中断した場合にも、被検体に無効被曝を生じさせることなく、X線撮影が行えるX線装置を提供するために、X線発生部10と、撮影条件を設定する操作パネル30と、撮影条件に従ってX線の照射を制御するX線照射制御部92aと、X線の照射中に、X線の照射を中断すべきエラーの発生を検出するエラー検出部92cと、エラーの発生が検出されると、X線の照射を中断する照射中断部92dと、設定された撮影条件により規定されるX線量を確保し、X線の照射を再開させる復旧部92jと、を備える。