include error type in exception