-Resolve error type.