This is the root exception class for all Jakarta XML Binding exceptions.
public JAXBException(java.lang.String message)
public JAXBException(java.lang.String message, java.lang.String errorCode)
public JAXBException(java.lang.String message, java.lang.String errorCode, java.lang.Throwable exception)
public JAXBException(java.lang.String message, java.lang.Throwable exception)
public JAXBException(java.lang.Throwable exception)
public java.lang.String getErrorCode()
public java.lang.Throwable getLinkedException()
public void printStackTrace(java.io.PrintStream s)
public void setLinkedException(java.lang.Throwable exception)
public java.lang.String toString()
public JAXBException(java.lang.String message)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
constructor public JAXBException(java.lang.String message)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Construct a JAXBException with the specified detail message. | the message is what set | Ctor001 |
The errorCode will default to null. | errorCode is null | Ctor002 |
The linkedException will default to null. | linkedException is null | Ctor003 |
public JAXBException(java.lang.String message, java.lang.String errorCode)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
constructor public JAXBException(java.lang.String message, java.lang.String errorCode)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Construct a JAXBException with the specified detail message. | the message is what set | Ctor004 |
Construct a JAXBException with the specified errorCode. | the errorCode is what set | Ctor005 |
The linkedException will default to null. | linkedException is null | Ctor006 |
public JAXBException(java.lang.String message, java.lang.String errorCode, java.lang.Throwable exception)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
constructor public JAXBException(java.lang.String message, java.lang.String errorCode, java.lang.Throwable exception)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Construct a JAXBException with the specified detail message. | the message is what set | Ctor007 |
Construct a JAXBException with the specified errorCode. | the errorCode is what set | Ctor008 |
Construct a JAXBException with the specified linkedException. | linkedException is what set | Ctor009 |
public JAXBException(java.lang.String message, java.lang.Throwable exception)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
constructor public JAXBException(java.lang.String message, java.lang.Throwable exception)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Construct a JAXBException with the specified detail message. | the message is what set | Ctor010 |
The errorCode will default to null. | errorCode is null | Ctor011 |
Construct a JAXBException with the specified linkedException. | linkedException is what set | Ctor012 |
public JAXBException(java.lang.Throwable exception)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
constructor public JAXBException(java.lang.Throwable exception)
.
Assertion | Expected results | Test Case ID |
---|---|---|
The detail message will default to null. | the message is null | Ctor013 |
The errorCode will default to null. | errorCode is null | Ctor014 |
Construct a JAXBException with the specified linkedException. | linkedException is what set | Ctor015 |
public java.lang.String getErrorCode()
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
method public java.lang.String getErrorCode()
.
Pre-conditions | Expected output value | Test Case ID |
---|---|---|
errorCode set to null | null | Ctor002 |
errorCode set to a non-null value | non-null | Ctor005 |
Pre-conditions | Assertion | Expected output value | Test Case ID |
---|---|---|---|
errorCode set to a non-null value | Get the vendor specific error code. | the errorCode is what set | Ctor008 |
public java.lang.Throwable getLinkedException()
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
method public java.lang.Throwable getLinkedException()
.
Pre-conditions | Assertion | Expected output value | Test Case ID |
---|---|---|---|
linkedException set to a non-null value | Get the linked exception. | the linkedException is what set | Ctor008 |
public void printStackTrace(java.io.PrintStream s)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
method public void printStackTrace(java.io.PrintStream s)
.
Pre-conditions | Assertion | Expected results | Test Case ID |
---|---|---|---|
error message is set to a non-null value | Prints this JAXBException and its stack trace to the PrintStream. | at leat one byte has been written to the PrintWriter's stream | Ctor021 |
Test cases included:
Ctor001,
Ctor002,
Ctor003,
Ctor004,
Ctor005,
Ctor006,
Ctor007,
Ctor008,
Ctor009,
Ctor010,
Ctor011,
Ctor012,
Ctor013,
Ctor014,
Ctor015,
Ctor016,
Ctor017,
Ctor018,
Ctor021.
Item | Value |
---|---|
title | General tests of constructors and methods |
source | JAXBExceptionTests.java |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBException.JAXBExceptionTests |
keywords | runtime positive |
executeArgs | -TestCaseID ALL |
public void setLinkedException(java.lang.Throwable exception)
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
method public void setLinkedException(java.lang.Throwable exception)
.
Pre-conditions | exception | Expected results | Test Case ID |
---|---|---|---|
linkedException is not set | non-null | the linkedException is what set | Ctor017 |
linkedException is set to a non-null value | null | the linkedException is null | Ctor018 |
Pre-conditions | Assertion | Expected results | Test Case ID |
---|---|---|---|
Add the linked exception. | linkedException is what set | Ctor017 | |
linkedException is set to a non-null value | A null value is permitted and indicates that the linked exception does not exist or is unknown. | linkedException is null | Ctor018 |
public java.lang.String toString()
Domain testing of input and output conditions, and external
pre-conditions for class JAXBException,
method public java.lang.String toString()
.
Pre-conditions | Assertion | Expected output value | Test Case ID |
---|---|---|---|
detail message, error code and linked exception are not null | Returns a short description of this JAXBException. | non-empty string | Ctor016 |