|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
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. |
|
| 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 java.lang.Throwable |
fillInStackTrace, getCause, 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 logger 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).| Method Detail |
public void toSAX(org.xml.sax.ContentHandler hdl)
throws org.xml.sax.SAXException,
org.apache.cocoon.ProcessingException
toSAX in interface org.apache.cocoon.xml.XMLizableorg.xml.sax.SAXException
org.apache.cocoon.ProcessingExceptionpublic 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 | |||||||||