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