|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.adventnet.tl1.TL1Exception
|
+--com.adventnet.tl1.parser.TL1ParserException
This TL1ParserException is thrown by the factory methods and the getter (extractor of a specific message part) methods of all the TL1 message parsers.
| Constructor Summary | |
TL1ParserException()
Constructs a TL1ParserException without a detailed error
message. |
|
TL1ParserException(java.lang.String message)
Constructs a TL1ParserException with the detailed error
message specified. |
|
TL1ParserException(java.lang.String reason,
java.lang.String parser,
java.lang.String mode)
Constructs a special TL1ParserException object with a
failure message and a header. |
|
| Method Summary | |
java.lang.String |
getMessage()
Returns the error message string of this TL1ParserException
object. |
java.lang.String |
getMode()
Gets the mode of the parser in which it was operating when the exception occurred. |
java.lang.String |
getParser()
Gets the name of the parser where the exception occurred. |
java.lang.String |
getReason()
Gets the reason for failure. |
java.lang.Object |
getTL1Message()
Gets the partially created TL1 Message component object. |
void |
setTL1Message(java.lang.Object tl1message)
Sets the TL1ParserException with the partially created TL1 Message component object. |
| Methods inherited from class com.adventnet.tl1.TL1Exception |
getProblem, setProblem |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TL1ParserException()
TL1ParserException without a detailed error
message.public TL1ParserException(java.lang.String message)
TL1ParserException with the detailed error
message specified.message - the detailed error message.
public TL1ParserException(java.lang.String reason,
java.lang.String parser,
java.lang.String mode)
TL1ParserException object with a
failure message and a header. The header has the parser name and the
parser mode embedded in it. This special constructor
changes the semantics of getMessage().reason - the error message outlining the reason for this exception.parser - the name of the parser where this exception occurred.mode - the parser mode of the parser, either FLEXIBLE or RIGID.| Method Detail |
public java.lang.String getMessage()
TL1ParserException
object.
This method has the standard behaviour when this object is created using the standard construtors. On the other hand, if the special constrcutor is used the error message string contains the parser name, mode in which the parser was operating and the reason for failure.
getMessage in class java.lang.ThrowableTL1ParserException object if created with
an error message string; or null if created without any
error message.public java.lang.String getReason()
TL1ParserException object if created with
a reason; or null if created without any reason.public java.lang.String getParser()
TL1ParserException
object if created with the name of the parser; or null if
created without any name.public java.lang.String getMode()
TL1ParserException
object is created with the mode of parser; or null if
created without any mode.public void setTL1Message(java.lang.Object tl1message)
This partially created TL1Message object will contain all the fields that has been set on it until the point at which an error is encountered by the parser. This enables applications perform root-cause analysis of the cause of this exception.
tl1message - the partially created TL1 Message component object.public java.lang.Object getTL1Message()
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||