name method

String name()

Gets the name of the value.

Implementation

String name() {
  switch (_value) {
    case -1:
      return 'FAILURE_DISALLOWED';
    case -3:
      return 'FAILURE_MESSAGING_ERROR';
    case -2:
      return 'FAILURE_REMOTE_ERROR';
    case 0:
      return 'SUCCESS';
  }
  return _value.toString();
}