Create original error class and use it