toString method

  1. @override
String toString()
override

Returns a string representation of the ForbiddenException for debugging purposes.

This method includes the list of error messages related to the forbidden access attempt, making it easier to diagnose the issue.

Implementation

@override
String toString() => 'FORBIDDEN EXCEPTION: $messages';