Package org.ow2.easywsdl.schema.api
Class XmlException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.ow2.easywsdl.schema.api.XmlException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SchemaException
public class XmlException extends Exception
- Author:
- Nicolas Salatge - EBM WebSourcing
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIGURATION_ERRORstatic StringINVALID_Schemastatic StringNO_PREFIX_SPECIFIEDstatic StringOTHER_ERRORstatic StringPARSER_ERRORstatic longserialVersionUIDstatic StringUNBOUND_PREFIX
-
Constructor Summary
Constructors Constructor Description XmlException(String msg)XmlException(String faultCode, String msg)XmlException(String faultCode, String msg, Throwable t)XmlException(String msg, Throwable t)XmlException(Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFaultCode()StringgetLocation()Get the location, if one was set.StringgetMessage()ThrowablegetTargetException()voidsetFaultCode(String faultCode)voidsetLocation(String location)Set the location using an XPath expression.voidsetTargetException(Throwable targetThrowable)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
INVALID_Schema
public static final String INVALID_Schema
- See Also:
- Constant Field Values
-
PARSER_ERROR
public static final String PARSER_ERROR
- See Also:
- Constant Field Values
-
OTHER_ERROR
public static final String OTHER_ERROR
- See Also:
- Constant Field Values
-
CONFIGURATION_ERROR
public static final String CONFIGURATION_ERROR
- See Also:
- Constant Field Values
-
UNBOUND_PREFIX
public static final String UNBOUND_PREFIX
- See Also:
- Constant Field Values
-
NO_PREFIX_SPECIFIED
public static final String NO_PREFIX_SPECIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
setFaultCode
public void setFaultCode(String faultCode)
-
getFaultCode
public String getFaultCode()
-
setTargetException
public void setTargetException(Throwable targetThrowable)
-
getTargetException
public Throwable getTargetException()
-
setLocation
public void setLocation(String location)
Set the location using an XPath expression. Used for error messages.- Parameters:
location- an XPath expression describing the location where the exception occurred.
-
getLocation
public String getLocation()
Get the location, if one was set. Should be an XPath expression which is used for error messages.
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-