supporting default error type