added custom error class