Node Js Error Class Inertia