| java.lang.Object java.lang.Throwable java.lang.Exception com.sun.org.apache.xml.internal.resolver.CatalogException
CatalogException | public class CatalogException extends Exception (Code) | | Signal Catalog exception.
This exception is thrown if an error occurs loading a
catalog file.
See Also: Catalog author: Norman Walsh author: Norman.Walsh@Sun.COM version: 1.0 |
INVALID_ENTRY | final public static int INVALID_ENTRY(Code) | | An invalid entry
|
INVALID_ENTRY_TYPE | final public static int INVALID_ENTRY_TYPE(Code) | | An invalid entry type
|
NO_XML_PARSER | final public static int NO_XML_PARSER(Code) | | Could not instantiate an XML parser
|
PARSE_FAILED | final public static int PARSE_FAILED(Code) | | XML but parse failed
|
UNENDED_COMMENT | final public static int UNENDED_COMMENT(Code) | | Text catalog ended in mid-comment
|
UNKNOWN_FORMAT | final public static int UNKNOWN_FORMAT(Code) | | Unknown XML format
|
UNPARSEABLE | final public static int UNPARSEABLE(Code) | | Unparseable XML catalog (not XML)
|
WRAPPER | final public static int WRAPPER(Code) | | A wrapper around another exception
|
CatalogException | public CatalogException(int type, String message)(Code) | | Create a new CatalogException.
Parameters: type - The exception type Parameters: message - The error or warning message. |
CatalogException | public CatalogException(int type)(Code) | | Create a new CatalogException.
Parameters: type - The exception type |
CatalogException | public CatalogException(Exception e)(Code) | | Create a new CatalogException wrapping an existing exception.
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. |
CatalogException | public CatalogException(String message, Exception e)(Code) | | Create a new CatalogException from an existing exception.
The existing exception will be embedded in the new
one, but the new exception will have its own message.
Parameters: message - The detail message. Parameters: e - The exception to be wrapped in a CatalogException. |
getException | public Exception getException()(Code) | | Return the embedded exception, if any.
The embedded exception, or null if there is none. |
getExceptionType | public int getExceptionType()(Code) | | Return the exception type
The exception type |
getMessage | public String getMessage()(Code) | | Return a detail message for this exception.
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.
The error or warning message. |
toString | public String toString()(Code) | | Override toString to pick up any embedded exception.
A string representation of this exception. |
|
|