toString method

  1. @override
String toString()
override

Returns a string representation of the exception for debugging purposes.

Includes the list of error messages for better insights into what went wrong.

Implementation

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