|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.gv.egovernment.moa.spss.server.invoke.IaikExceptionMapper
Map an exception from the iaik
namespace to a
MOAException
.
Constructor Summary | |
protected |
IaikExceptionMapper()
Create a new IaikExceptionMapper .
|
Method Summary | |
protected MOAException |
createMoaException(Exception iaikException)
Create a MOAException from a given IAIKException
by looking it up in the mapping. |
static IaikExceptionMapper |
getInstance()
Get the single instance of this class. |
protected at.gv.egovernment.moa.spss.server.invoke.ExceptionMappingInfo |
lookupMessage(Class iaikExceptionClass)
Recursively look up the message associated with an IAIKException .
|
MOAException |
map(iaik.IAIKException iaikException)
Map an IAIKException to a MOAException . |
MOAException |
map(iaik.IAIKRuntimeException iaikException)
Map an IAIKRuntimeException to a MOAException . |
protected void |
registerMessage(Class iaikExceptionClass,
String messageId,
Class moaExceptionClass)
Register a single IAIKException to message mapping. |
protected void |
registerMessages()
Build the complete IAIKException to message code mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected IaikExceptionMapper()
IaikExceptionMapper
.
Protected to disallow multple instances.Method Detail |
public static IaikExceptionMapper getInstance()
protected void registerMessages()
IAIKException
to message code mapping.protected void registerMessage(Class iaikExceptionClass, String messageId, Class moaExceptionClass)
IAIKException
to message mapping.iaikExceptionClass
- An exception from the iaik
package.messageId
- The corresponding error message id.moaExceptionClass
- The type of MOAException
that the
IAIKException
is mapped to (usually
MOAApplicationException
or MOASystemException
).public MOAException map(iaik.IAIKException iaikException)
IAIKException
to a MOAException
.iaikException
- The IAIKException
to map.MOAException
containing the message for the
given IAIKException
.public MOAException map(iaik.IAIKRuntimeException iaikException)
IAIKRuntimeException
to a MOAException
.iaikException
- The IAIKException
to map.MOAException
containing the message for the
given IAIKRuntimeException
.protected MOAException createMoaException(Exception iaikException)
MOAException
from a given IAIKException
by looking it up in the mapping.iaikException
- The IAIKException
to map.MOAException
with an error code corresponding to
the given IAIKException
. Returns null
, if no
mapping could be found.protected at.gv.egovernment.moa.spss.server.invoke.ExceptionMappingInfo lookupMessage(Class iaikExceptionClass)
IAIKException
.
This method walks up the exception inheritance hierarchy until it finds a
mapping.iaikExceptionClass
- The IAIKException
to look up.MOAException
class that the iaikExceptionClass
maps to. If no mapping could be found, null
is returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |