Home » Castor-1.3-src » org.exolab.castor » xml » [javadoc | source]
org.exolab.castor.xml
public class: XMLException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.exolab.castor.core.exceptions.CastorException
            org.exolab.castor.xml.XMLException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    SchemaException, ResolverException, ValidationException, MarshalException

An exception that is used to signal an error that has occured during marshaling or unmarshaling.
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public XMLException() 
 public XMLException(String message) 
    Creates a new XMLException with the given message.
    Parameters:
    message - the message for this Exception
 public XMLException(Throwable exception) 
    Creates a new XMLException with the given nested Exception.
    Parameters:
    exception - the nested exception
 public XMLException(String message,
    int errorCode) 
    Creates a new XMLException with the given message and error code.
    Parameters:
    message - the message for this Exception
    errorCode - the errorCode for this Exception
 public XMLException(String message,
    Throwable exception) 
    Creates a new XMLException with the given message and nested Exception.
    Parameters:
    message - the detail message for this Exception
    exception - the nested exception
 public XMLException(String message,
    Throwable exception,
    int errorCode) 
    Creates a new XMLException with the given message, nested Exception, and errorCode.
    Parameters:
    message - the detail message for this exception
    exception - the nested exception
    errorCode - the errorCode for this Exception
Method from org.exolab.castor.xml.XMLException Summary:
getErrorCode,   setErrorCode,   setLocation,   toString
Methods from org.exolab.castor.core.exceptions.CastorException:
getCause,   getMessage,   initCause,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.exolab.castor.xml.XMLException Detail:
 public int getErrorCode() 
    Returns the error code for this Exception, or -1 if no error code exists.
 public  void setErrorCode(int errorCode) 
    Sets the error code for this Exception.
 public  void setLocation(Location location) 
    Sets the location information for this Exception.
 public String toString() 
    Returns the String representation of this Exception.