|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.avalon.framework.CascadingException
fr.gouv.culture.sdx.exception.SDXException
The superclass of all exceptions thrown by the SDX Framework and the applications contained within.
| Field Summary | |
protected java.util.Locale |
locale
The current locale (system's locale by default). |
| Constructor Summary | |
SDXException(org.apache.avalon.framework.logger.Logger l,
int code,
java.lang.String[] args,
java.lang.Throwable e)
Creates an SDX exception with all parameters. |
|
SDXException(java.lang.String s)
|
|
SDXException(java.lang.String s,
java.lang.Throwable throwable)
|
|
| Method Summary | |
java.lang.String |
getMessage()
Returns an error message. |
java.lang.String |
getMessage(java.util.Locale l)
Returns the error message for a given locale. |
void |
toSAX(org.xml.sax.ContentHandler hdl)
Returns an XML description of this error.TODOJavadoc:once we have a schema for the structure of this representation we should link to it here |
| Methods inherited from class org.apache.avalon.framework.CascadingException |
getCause |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Locale locale
| Constructor Detail |
public SDXException(org.apache.avalon.framework.logger.Logger l,
int code,
java.lang.String[] args,
java.lang.Throwable e)
l - The super.getLog() to use (may be null).code - The error code (must be defined in class SDXExceptionCode).args - The message arguments (may be null or empty).e - The original exception thrown (may be null).public SDXException(java.lang.String s)
public SDXException(java.lang.String s,
java.lang.Throwable throwable)
| Method Detail |
public void toSAX(org.xml.sax.ContentHandler hdl)
throws org.xml.sax.SAXException
toSAX in interface org.apache.excalibur.xml.sax.XMLizableorg.xml.sax.SAXExceptionpublic java.lang.String getMessage()
The error message is in the default locale of the Java virtual machine, if available, if not in the SDX default (english)
TODONOW:currently not true, the default locale (english) still needs to be implemented-rbp
public java.lang.String getMessage(java.util.Locale l)
l - The locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||