|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sun.resolver.CatalogException
Signal Catalog exception.
Copyright © 2000, 2001 Sun Microsystems, Inc. All Rights Reserved. This software is the proprietary information of Sun Microsystems, Inc. Use is subject to license terms.
This exception is thrown if an error occurs loading a catalog file.
Catalog
,
Serialized FormField 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(java.lang.Exception e)
Create a new CatalogException wrapping an existing exception. |
|
CatalogException(int type)
Create a new CatalogException. |
|
CatalogException(int type,
java.lang.String message)
Create a new CatalogException. |
|
CatalogException(java.lang.String message,
java.lang.Exception e)
Create a new CatalogException from an existing exception. |
Method Summary | |
java.lang.Exception |
getException()
Return the embedded exception, if any. |
int |
getExceptionType()
Return the exception type |
java.lang.String |
getMessage()
Return a detail message for this exception. |
java.lang.String |
toString()
Override toString to pick up any embedded exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int WRAPPER
public static final int INVALID_ENTRY
public static final int INVALID_ENTRY_TYPE
public static final int NO_XML_PARSER
public static final int UNKNOWN_FORMAT
public static final int UNPARSEABLE
public static final int PARSE_FAILED
Constructor Detail |
public CatalogException(int type, java.lang.String message)
type
- The exception typemessage
- The error or warning message.public CatalogException(int type)
type
- The exception typepublic CatalogException(java.lang.Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the CatalogException.
e
- The exception to be wrapped in a CatalogException.public CatalogException(java.lang.String message, java.lang.Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped in a CatalogException.Method Detail |
public java.lang.String getMessage()
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.
public java.lang.Exception getException()
public int getExceptionType()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |