org.openmdx.base.accessor.jmi.spi
Class RefException_1

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jmi.reflect.RefException
              extended by org.openmdx.base.accessor.jmi.spi.RefException_1
All Implemented Interfaces:
Serializable, BasicException.Wrapper, MultiLineStringRepresentation

public class RefException_1
extends RefException
implements BasicException.Wrapper

Imlementation of RefException embedding a BasicException.

See Also:
Serialized Form

Constructor Summary
RefException_1(BasicException.Parameter[] properties)
           
RefException_1(BasicException e)
           
RefException_1(Exception cause, String exceptionDomain, int exceptionCode, String description, BasicException.Parameter[] properties)
           
RefException_1(ServiceException e)
           
RefException_1(String domain, int errorCode, String description, BasicException.Parameter[] properties)
           
 
Method Summary
 Throwable getCause()
          Returns the cause of an exception.
 BasicException getCause(String exceptionDomain)
          Returns the cause belonging to a specific exception domain.
 int getExceptionCode()
          Retrieves the exception code of this ServiceException.
 String getExceptionDomain()
          Retrieves the exception domain of this ServiceException.
 BasicException getExceptionStack()
          Return a BasicException, this exception object's cause.
 String getMessage()
          Returns the detail message string of this RuntimeServiceException.
 Throwable initCause(Throwable cause)
          Initializes the cause of this throwable to the specified value.
 RefException_1 log()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 ServiceException refGetServiceException()
           
 Object refGetValue(String propertyName)
           
 Object refGetValue(String propertyName, int index)
           
static BasicException.Parameter refNewProperty(String propertyName, Object propertyValue)
           
 String toString()
          A String consisting of the class of this exception, the exception domain, the exception code, the exception description and the exception stack.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefException_1

public RefException_1(Exception cause,
                      String exceptionDomain,
                      int exceptionCode,
                      String description,
                      BasicException.Parameter[] properties)

RefException_1

public RefException_1(BasicException.Parameter[] properties)

RefException_1

public RefException_1(String domain,
                      int errorCode,
                      String description,
                      BasicException.Parameter[] properties)

RefException_1

public RefException_1(ServiceException e)

RefException_1

public RefException_1(BasicException e)
Method Detail

log

public RefException_1 log()

refGetValue

public Object refGetValue(String propertyName)

refGetValue

public Object refGetValue(String propertyName,
                          int index)

refNewProperty

public static BasicException.Parameter refNewProperty(String propertyName,
                                                      Object propertyValue)

refGetServiceException

public ServiceException refGetServiceException()

getExceptionStack

public BasicException getExceptionStack()
Return a BasicException, this exception object's cause.

Specified by:
getExceptionStack in interface BasicException.Wrapper
Returns:
the BasicException wrapped by this object.

getExceptionDomain

public String getExceptionDomain()
Retrieves the exception domain of this ServiceException.

Specified by:
getExceptionDomain in interface BasicException.Wrapper
Returns:
the exception domain

getExceptionCode

public int getExceptionCode()
Retrieves the exception code of this ServiceException.

Specified by:
getExceptionCode in interface BasicException.Wrapper
Returns:
the exception code

getCause

public BasicException getCause(String exceptionDomain)
Returns the cause belonging to a specific exception domain.

Specified by:
getCause in interface BasicException.Wrapper
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.

getMessage

public String getMessage()
Returns the detail message string of this RuntimeServiceException.

Specified by:
getMessage in interface BasicException.Wrapper
Overrides:
getMessage in class Throwable
Returns:
the detail message string of this Wrapper exception instance (which may be null).

toString

public String toString()
A String consisting of the class of this exception, the exception domain, the exception code, the exception description and the exception stack.

Overrides:
toString in class Throwable
Returns:
a multiline representation of this exception.

initCause

public Throwable initCause(Throwable cause)
Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)

Overrides:
initCause in class Throwable
Parameters:
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Returns:
a reference to this RuntimeServiceException instance.
Throws:
IllegalArgumentException - if cause is this throwable. (A throwable cannot be its own cause.)
IllegalStateException - if the cause is already set.

getCause

public Throwable getCause()
Returns the cause of an exception. The cause actually is the wrapped exception.

Overrides:
getCause in class Throwable
Returns:
Throwable The exception cause.

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


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