toString method
Returns a string representation of the UnauthorizedException for debugging purposes.
This method includes the list of error messages associated with the unauthorized access, making it easier for developers to diagnose issues related to user authentication or permissions.
Implementation
@override
String toString() => 'UNAUTHORIZED EXCEPTION: $messages';