Refined custom error object