Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NCAAddrError = &RPCError{0x1C000002, "nca_s_fault_addr_error", ""} NCACancel = &RPCError{0x1C00000D, "nca_s_fault_cancel", ""} NCACodesetConvError = &RPCError{0x1C000023, "nca_s_fault_codeset_conv_error", ""} NCAContextMismatch = &RPCError{0x1C00001A, "nca_s_fault_context_mismatch", "The context handle does not match any known context handles."} NCAFpDivZero = &RPCError{0x1C000003, "nca_s_fault_fp_div_zero", ""} NCAFpError = &RPCError{0x1C00000F, "nca_s_fault_fp_error", ""} NCAFpOverflow = &RPCError{0x1C000005, "nca_s_fault_fp_overflow", ""} NCAFpUnderflow = &RPCError{0x1C000004, "nca_s_fault_fp_underflow", ""} NCAIllInst = &RPCError{0x1C00000E, "nca_s_fault_ill_inst", ""} NCAIntDivByZero = &RPCError{0x1C000001, "nca_s_fault_int_div_by_zero", ""} NCAIntOverflow = &RPCError{0x1C000010, "nca_s_fault_int_overflow", ""} NCAInvalidBound = &RPCError{0x1C000007, "nca_s_fault_invalid_bound", ""} NCAInvalidTag = &RPCError{0x1C000006, "nca_s_fault_invalid_tag", ""} NCANoClientStub = &RPCError{0x1C000025, "nca_s_fault_no_client_stub", ""} NCAObjectNotFound = &RPCError{0x1C000024, "nca_s_fault_object_not_found", ""} NCAPipeClosed = &RPCError{0x1C000015, "nca_s_fault_pipe_closed", ""} NCAPipeCommError = &RPCError{0x1C000018, "nca_s_fault_pipe_comm_error", ""} NCAPipeDiscipline = &RPCError{0x1C000017, "nca_s_fault_pipe_discipline", ""} NCAPipeEmpty = &RPCError{0x1C000014, "nca_s_fault_pipe_empty", ""} NCAPipeMemory = &RPCError{0x1C000019, "nca_s_fault_pipe_memory", ""} NCAPipeOrder = &RPCError{0x1C000016, "nca_s_fault_pipe_order", ""} NCARemoteNoMemory = &RPCError{0x1C00001B, "nca_s_fault_remote_no_memory", ""} NCATxOpenFailed = &RPCError{0x1C000022, "nca_s_fault_tx_open_failed", ""} NCSUserDefined = &RPCError{0x1C000021, "ncs_s_fault_user_defined", ""} RPCCallCancelled = &RPCError{0x16C9A031, "rpc_s_call_cancelled", ""} RPCAddrError = &RPCError{0x16C9A074, "rpc_s_fault_addr_error", ""} RPCCodesetConvError = &RPCError{0x16C9A16E, "rpc_s_fault_codeset_conv_error", ""} RPCContextMismatch = &RPCError{0x16C9A075, "rpc_s_fault_context_mismatch", "The context handle does not match any known context handles."} RPCFpDivByZero = &RPCError{0x16C9A076, "rpc_s_fault_fp_div_by_zero", ""} RPCFpError = &RPCError{0x16C9A077, "rpc_s_fault_fp_error", ""} RPCFpOverflow = &RPCError{0x16C9A078, "rpc_s_fault_fp_overflow", ""} RPCFpUnderflow = &RPCError{0x16C9A079, "rpc_s_fault_fp_underflow", ""} RPCIllInst = &RPCError{0x16C9A07A, "rpc_s_fault_ill_inst", ""} RPCIntDivByZero = &RPCError{0x16C9A07B, "rpc_s_fault_int_div_by_zero", ""} RPCIntOverflow = &RPCError{0x16C9A07C, "rpc_s_fault_int_overflow", ""} RPCInvalidBound = &RPCError{0x16C9A07D, "rpc_s_fault_invalid_bound", ""} RPCInvalidTag = &RPCError{0x16C9A07E, "rpc_s_fault_invalid_tag", ""} RPCNoClientStub = &RPCError{0x16C9A170, "rpc_s_fault_no_client_stub", ""} RPCObjectNotFound = &RPCError{0x16C9A01B, "rpc_s_fault_object_not_found", ""} RPCPipeClosed = &RPCError{0x16C9A07F, "rpc_s_fault_pipe_closed", ""} RPCPipeCommError = &RPCError{0x16C9A080, "rpc_s_fault_pipe_comm_error", ""} RPCPipeDiscipline = &RPCError{0x16C9A081, "rpc_s_fault_pipe_discipline", ""} RPCPipeEmpty = &RPCError{0x16C9A082, "rpc_s_fault_pipe_empty", ""} RPCPipeMemory = &RPCError{0x16C9A083, "rpc_s_fault_pipe_memory", ""} RPCPipeOrder = &RPCError{0x16C9A084, "rpc_s_fault_pipe_order", ""} RPCRemoteNoMemory = &RPCError{0x16C9A086, "rpc_s_fault_remote_no_memory", ""} RPCTxOpenFailed = &RPCError{0x16C9A116, "rpc_s_fault_tx_open_failed", ""} RPCUnspec = &RPCError{0x16C9A087, "rpc_s_fault_unspec", ""} RPCUserDefined = &RPCError{0x16C9A113, "rpc_s_fault_user_defined", ""} )
View Source
var ( RPCVersionMismatch = &RPCError{0x1c000008, "nca_rpc_version_mismatch", "The server does not support the RPC protocol version specified in the request PDU."} UnspecifiedReject = &RPCError{0x1c000009, "nca_unspec_reject", "The request is being rejected for unspecified reasons."} ServerBadActivityID = &RPCError{0x1c00000A, "nca_s_bad_actid", "The server has no state corresponding to the activity identifier in the message."} WhoAreYouFailed = &RPCError{0x1c00000b, "nca_who_are_you_failed", "The Conversation Manager callback failed."} ManagerNotEntered = &RPCError{0x1c00000c, "nca_manager_not_entered", "The server manager routine has not been entered and executed."} OperationRangeError = &RPCError{0x1c010002, "nca_op_rng_error", "The operation number passed in the request PDU is greater than or equal to the number of operations in the interface."} UnknownInterface = &RPCError{0x1c010003, "nca_unk_if", "The server does not export the requested interface."} WrongBootTime = &RPCError{0x1c010006, "nca_wrong_boot_time", "The server boot time passed in the request PDU does not match the actual server boot time."} ServerYouCrashed = &RPCError{0x1c010009, "nca_s_you_crashed", "A restarted server called back a client."} ProtocolError = &RPCError{0x1c01000b, "nca_proto_error", "The RPC client or server protocol has been violated."} OutputArgsTooBig = &RPCError{0x1c010013, "nca_out_args_too_big", "The output parameters of the operation exceed their declared maximum size."} ServerTooBusy = &RPCError{0x1c010014, "nca_server_too_busy", "The server is too busy to handle the call."} UnsupportedType = &RPCError{0x1c010017, "nca_unsupported_type", "The server does not implement the requested operation for the type of the requested object."} InvalidPresentationContextID = &RPCError{0x1c00001c, "nca_invalid_pres_context_id", "Invalid presentation context ID."} UnsupportedAuthnLevel = &RPCError{0x1c00001d, "nca_unsupported_authn_level", "The server did not support the requested authentication level."} InvalidChecksum = &RPCError{0x1c00001f, "nca_invalid_checksum", "Invalid checksum."} InvalidCRC = &RPCError{0x1c000020, "nca_invalid_crc", "Invalid CRC."} )
Functions ¶
func FaultFromCode ¶
Types ¶
type Mapper ¶
type Mapper interface { // MapValue maps the given value to the registered error. MapValue(context.Context, any) error }
Mapper represents the error mapping engine.
type MapperStore ¶
type MapperStore struct {
// contains filtered or unexported fields
}
func (*MapperStore) AddMapper ¶
func (ms *MapperStore) AddMapper(m Mapper)
Click to show internal directories.
Click to hide internal directories.