error property

SDNError get error

Returns the errcode as an SDNError.

Implementation

SDNError get error => SDNError.values.firstWhere(
      (e) => e.name == errcode,
      orElse: () => SDNError.M_UNKNOWN,
    );