toCode method

  1. @override
String toCode()
override

Returns the code of the exception.

This method can be used to get the code of the exception, which can be useful for error handling.

Implementation

@override
String toCode() {
  return code;
}