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 this XMLException
@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 this XMLException
@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 this XMLException
@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.

@param cause the root cause of this exception
@return this 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 this XSLException
@throws IllegalArgumentException if the cause is this exception(An exception cannot be its own cause.)
@throws IllegalStateException if this method is called twice

Initializes the cause of this exception to the specified value.
@param cause The cause of this exception.
@return This exception.
@throws IllegalArgumentException If the specified cause is thisexception.
@throws IllegalStateException If the cause of this exception has alreadybeen set.
@since 1.2