hasCode method

bool hasCode(
  1. String code
)
inherited

Allows the error type to be checked without needing to know implementation details of the code prefixing.

@param code - The non-prefixed error code to test against. @returns True if the code matches, false otherwise.

Implementation

external bool hasCode(String code);