Yate
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
SS7TCAPError Class Reference

Public Types

enum  ErrorType {
  Transact_UnrecognizedPackageType , Transact_IncorrectTransactionPortion , Transact_BadlyStructuredTransaction , Transact_UnassignedTransactionID ,
  Transact_PermissionToReleaseProblem , Transact_ResourceUnavailable , Dialog_UnrecognizedDialoguePortionID , Dialog_BadlyStructuredDialoguePortion ,
  Dialog_MissingDialoguePortion , Dialog_InconsistentDialoguePortion , Dialog_Abnormal , General_UnrecognizedComponentType ,
  General_IncorrectComponentPortion , General_BadlyStructuredCompPortion , General_IncorrectComponentCoding , Invoke_DuplicateInvokeID ,
  Invoke_UnrecognizedOperationCode , Invoke_IncorrectParameter , Invoke_UnrecognizedCorrelationID , Invoke_ResourceLimitation ,
  Invoke_InitiatingRelease , Invoke_LinkedResponseUnexpected , Invoke_UnexpectedLinkedOperation , Result_UnrecognizedInvokeID ,
  Result_UnrecognisedCorrelationID , Result_UnexpectedReturnResult , Result_IncorrectParameter , Error_UnrecognizedInvokeID ,
  Error_UnrecognisedCorrelationID , Error_UnexpectedReturnError , Error_UnrecognisedError , Error_UnexpectedError ,
  Error_IncorrectParameter , Discard , NoError
}
 

Public Member Functions

 SS7TCAPError (SS7TCAP::TCAPType tcapType)
 
 SS7TCAPError (SS7TCAP::TCAPType tcapType, ErrorType error)
 
 ~SS7TCAPError ()
 
ErrorType error ()
 
void setError (ErrorType error)
 
const String errorName ()
 
u_int16_t errorCode ()
 

Static Public Member Functions

static int errorFromCode (SS7TCAP::TCAPType tcapType, u_int16_t code)
 
static u_int16_t codeFromError (SS7TCAP::TCAPType tcapType, int err)
 

Static Public Attributes

static const TokenDict s_errorTypes []
 

Constructor & Destructor Documentation

◆ SS7TCAPError() [1/2]

Constructor

Parameters
tcapTypeTCAP specification user for this error

◆ SS7TCAPError() [2/2]

SS7TCAPError ( SS7TCAP::TCAPType  tcapType,
ErrorType  error 
)

Constructor

Parameters
tcapTypeTCAP specification used for this error
errorThe error

◆ ~SS7TCAPError()

Destructor

Member Function Documentation

◆ codeFromError()

static u_int16_t codeFromError ( SS7TCAP::TCAPType  tcapType,
int  err 
)
static

Obtain TCAP specific error value from abstract TCAP error

Parameters
tcapTypeType of TCAP for which the error is searched
errAbstrat TCAP error
Returns
The error value as defined by the TCAP protocol

◆ error()

ErrorType error ( )
inline

Get the error

Returns
The TCAP error

◆ errorCode()

u_int16_t errorCode ( )

The full value of the error

Returns
2 byte integer containing the full code of the error

◆ errorFromCode()

static int errorFromCode ( SS7TCAP::TCAPType  tcapType,
u_int16_t  code 
)
static

Obtain abstract TCAP error from TCAP protocol defined error value

Parameters
tcapTypeType of TCAP for which the error is searched
codeTCAP protocol error value
Returns
The type of the error

◆ errorName()

const String errorName ( )

Error name

Returns
The error name

◆ setError()

void setError ( ErrorType  error)
inline

Set the error

Parameters
errorError to set

Member Data Documentation

◆ s_errorTypes

const TokenDict s_errorTypes[]
static

Dictionary for error types


The documentation for this class was generated from the following file: