org.apache.xml.resolver
public class CatalogException extends Exception
Signal Catalog exception.
This exception is thrown if an error occurs loading a catalog file.
Version: 1.0
Field Summary | |
---|---|
static int | INVALID_ENTRY An invalid entry |
static int | INVALID_ENTRY_TYPE An invalid entry type |
static int | NO_XML_PARSER Could not instantiate an XML parser |
static int | PARSE_FAILED XML but parse failed |
static int | UNKNOWN_FORMAT Unknown XML format |
static int | UNPARSEABLE Unparseable XML catalog (not XML) |
static int | WRAPPER A wrapper around another exception |
Constructor Summary | |
---|---|
CatalogException(int type, String message)
Create a new CatalogException.
| |
CatalogException(int type)
Create a new CatalogException.
| |
CatalogException(Exception e)
Create a new CatalogException wrapping an existing exception.
| |
CatalogException(String message, Exception e)
Create a new CatalogException from an existing exception.
|
Method Summary | |
---|---|
Exception | getException()
Return the embedded exception, if any.
|
int | getExceptionType()
Return the exception type
|
String | getMessage()
Return a detail message for this exception.
|
String | toString()
Override toString to pick up any embedded exception.
|
Parameters: type The exception type message The error or warning message.
Parameters: type The exception type
The existing exception will be embedded in the new one, and its message will become the default message for the CatalogException.
Parameters: e The exception to be wrapped in a CatalogException.
The existing exception will be embedded in the new one, but the new exception will have its own message.
Parameters: message The detail message. e The exception to be wrapped in a CatalogException.
Returns: The embedded exception, or null if there is none.
Returns: The exception type
If there is an embedded exception, and if the CatalogException has no detail message of its own, this method will return the detail message from the embedded exception.
Returns: The error or warning message.
Returns: A string representation of this exception.