org.openmdx.kernel.exception
Interface BasicException.Wrapper

All Superinterfaces:
MultiLineStringRepresentation
All Known Implementing Classes:
BadParameterException, ExtendedIOException, JmiServiceException, MarshalException, NotSupportedException, RefException_1, RuntimeServiceException, ServiceException, TokenException
Enclosing class:
BasicException

public static interface BasicException.Wrapper
extends MultiLineStringRepresentation

The interface Wrapper defines an exception as a wrapping exception that wraps a cause (a BasicException)

The default mapper knows the Wrapper interface and extracts the wrapped BasicException when building an exception stack.


Method Summary
 BasicException getCause(String exceptionDomain)
          Deprecated. use org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result
 int getExceptionCode()
          Deprecated. use org.openmdx.kernel.exception.BasicException#getExceptionCode() on org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result
 String getExceptionDomain()
          Deprecated. use org.openmdx.kernel.exception.BasicException#getExceptionDomain() on org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result
 BasicException getExceptionStack()
          Deprecated. use java.lang.Throwable#getCause()
 String getMessage()
          Returns the detail message string of this Wrapper exception.
 

Method Detail

getExceptionDomain

String getExceptionDomain()
Deprecated. use org.openmdx.kernel.exception.BasicException#getExceptionDomain() on org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result

Retrieves the exception domain for the wrapped BasicException.

Returns:
the domain value

getExceptionCode

int getExceptionCode()
Deprecated. use org.openmdx.kernel.exception.BasicException#getExceptionCode() on org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result

Retrieves the exception code for the wrapped BasicException.

Returns:
the error code

getMessage

String getMessage()
Returns the detail message string of this Wrapper exception.

Returns:
the detail message string of this Wrapper exception instance (which may be null).

getExceptionStack

BasicException getExceptionStack()
Deprecated. use java.lang.Throwable#getCause()

Returns the wrapped BasicException exception.

Returns:
The wrapped exception.

getCause

BasicException getCause(String exceptionDomain)
Deprecated. use org.openmdx.kernel.exception.Throwables#getCause(java.lang.Throwable,java.lang.String)'s result

Returns the cause belonging to a specific exception domain.

Parameters:
exceptionDomain - the desired exception domain, or null to retrieve the initial cause.
Returns:
Either the cause belonging to a specific exception domain or the initial cause if exceptionDomain is null.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.