Returns an AbstractError that best represents the passed subject. If the passed subject is already an AbstractError, it is returned as-is. Otherwise, it will be converted into an appropriate error type.
AbstractError
The subject to inspect
An AbstractError instance.
Returns an
AbstractError
that best represents the passed subject. If the passed subject is already anAbstractError
, it is returned as-is. Otherwise, it will be converted into an appropriate error type.