toCode method

String toCode()

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

String toCode() {
  return code;
}