public final class TcapError extends ImmutableDataObject
Constructor and Description |
---|
TcapError(TcapError parent,
String fieldName,
String protocolName,
String moduleName,
String valuerefName,
String apiName,
Code code,
String paramTypeName,
boolean paramOptional,
EventTypeID errorEventTypeID,
String errorEventClassName)
Creates a new TcapError.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAPIName()
Get the name used in this API for this error.
|
String |
getASN1Module()
Get the name of the ASN.1 module containing the definition of this error
|
String |
getASN1Name()
Get the ASN.1 value reference name defining this error
|
TcapError |
getBaseError()
Get the base error of this error.
|
Code |
getErrorCode()
Get the error code of this error.
|
Class<?> |
getErrorEventClass(ClassLoader loader)
Get the event class used to fire this error.
|
String |
getErrorEventClassName()
Get the name of the event class used to fire this error.
|
EventTypeID |
getErrorEventTypeID()
Get the event type used to fire this error.
|
String |
getFieldName()
Get the field name of this error.
|
Class<?> |
getParameterType(ClassLoader loader)
Get the Java Class used to carry the parameter of this error
|
String |
getParameterTypeName()
Get the name of the Java Class used to carry the parameter of this error
|
TcapError |
getParentError()
Get the parent error of this error.
|
String |
getProtocolName()
Get the name of the error's protocol.
|
int |
hashCode() |
boolean |
isA(TcapError other)
Test if this is a suberror of another error
|
boolean |
isParameterOptional()
Check if the parameter of this error is optional.
|
String |
toString() |
clone, isReadOnly, setReadOnly
public TcapError(TcapError parent, String fieldName, String protocolName, String moduleName, String valuerefName, String apiName, Code code, String paramTypeName, boolean paramOptional, EventTypeID errorEventTypeID, String errorEventClassName)
parent
- the parent error of this error, or null
if this error has no parentfieldName
- the full field name defining this errorprotocolName
- the name of this error's protocolmoduleName
- the name of the ASN.1 module defining this errorvaluerefName
- the valueref name within the ASN.1 module for this error definitionapiName
- the short name of this operation used within the APIcode
- the error code of the errorparamTypeName
- the name of the Java class used to carry the parameter data of this error, or null
if the operation has no parameterparamOptional
- true iff the error parameter is optionalerrorEventTypeID
- the event type that this error is fired aserrorEventClassName
- the name of the event class that this error is fired aspublic String getFieldName()
public String getProtocolName()
public String getASN1Name()
public String getASN1Module()
public String getAPIName()
public Code getErrorCode()
public Class<?> getParameterType(ClassLoader loader)
loader
- the classloader to use to load the classnull
if the error has no parameter type definedTypeNotPresentException
- if the class cannot be loadedpublic String getParameterTypeName()
null
if the error has no parameter type definedpublic boolean isParameterOptional()
public TcapError getParentError()
null
if this error has no parentpublic TcapError getBaseError()
this
if this error has no parent.public EventTypeID getErrorEventTypeID()
public Class<?> getErrorEventClass(ClassLoader loader)
loader
- the classloader to use to load the classTypeNotPresentException
- if the class cannot be loadedpublic String getErrorEventClassName()
public boolean isA(TcapError other)
other
- the other error to test against