48 var suffix =
string.IsNullOrEmpty(message) ?
string.Empty :
" " + message;
49 Message = $
"Received NAK error '{Helpers.SplitCamelCase(replyData.ErrorCode.ToString())}'.{suffix}";
116 : base($
"SCB key type mismatch: ACU used {(acuUsedDefaultKey ? "SCBK-D
" : "SCBK
")} " +
117 $
"but PD responded with {(pdClaimedDefaultKey ? "SCBK-D
" : "SCBK
")}")
InvalidPayloadException(string message)
Initializes a new instance of OSDP.Net.InvalidPayloadException with a specified error message.
Nak Reply
Parsed osdp_NAK packet data.
NackReplyException(Nak replyData, string message=null)
Initializes a new instance of OSDP.Net.NackReplyException class.
OSDPNetException()
Initializes a new instance of OSDP.Net.OSDPNetException.
OSDPNetException(string message)
Initializes a new instance of OSDP.Net.OSDPNetException with a specified error message.
bool PdClaimedDefaultKey
Gets a value indicating whether the PD claimed to use the default key (SCBK-D).
SecureChannelKeyTypeMismatchException(bool acuUsedDefaultKey, bool pdClaimedDefaultKey)
Initializes a new instance of SecureChannelKeyTypeMismatchException.
bool AcuUsedDefaultKey
Gets a value indicating whether the ACU was using the default key (SCBK-D).
SecureChannelRequired()
Initializes a new instance of OSDP.Net.SecureChannelRequired.
SecureChannelRequired(string message)
Initializes a new instance of OSDP.Net.SecureChannelRequired with a specified error message.