This method will convert the cause to {@link SerializableThrowable} if it is not already.
Sets the root cause of this exception. This may only be called once. Subsequent calls throw an IllegalStateException
.
This method is unnecessary in Java 1.4 where it could easily be inherited from the superclass. However, including it here allows this method to be used in Java 1.3 and earlier.
@param cause the root cause of this exception @return thisXMLException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice
Sets the root cause of this exception. This may only be called once. Subsequent calls throw an IllegalStateException
.
This method is unnecessary in Java 1.4 where it could easily be inherited from the superclass. However, including it here allows this method to be used in Java 1.3 and earlier.
@param cause the root cause of this exception @return thisXMLException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice
Sets the root cause of this exception. This may only be called once. Subsequent calls throw an IllegalStateException
.
This method is unnecessary in Java 1.4 where it could easily be inherited from the superclass. However, including it here allows this method to be used in Java 1.3 and earlier.
@param cause the root cause of this exception @return thisXMLException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice
When an IOException
, MalformedURLException
, or other generic exception is thrown while processing an XML document for XIncludes, it is customarily replaced by some form of XIncludeException
. This method allows you to store the original exception.
XIncludeException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice
Sets the root cause of this exception. This may only be called once. Subsequent calls throw an IllegalStateException
.
This method is unnecessary in Java 1.4 where it could easily be inherited from the superclass. However, including it here allows this method to be used in Java 1.3 and earlier.
@param cause the root cause of this exception @return thisXSLException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice
|
|
|
|
|
|
|
|
|
|