javax.jmi.reflect
Class JmiException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.jmi.reflect.JmiException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlreadyExistsException, ClosureViolationException, CompositionCycleException, CompositionViolationException, ConstraintViolationException, DuplicateException, InvalidCallException, InvalidNameException, InvalidObjectException, TypeMismatchException, WrongSizeException

public abstract class JmiException
extends java.lang.RuntimeException

Ancestor for all JMI exceptions thrown by reflective and generated methods.

See Also:
Serialized Form

Constructor Summary
JmiException()
          Constructs new JmiException without detail message.
JmiException(java.lang.Object objectInError, RefObject elementInError)
          Constructs new JmiException without detail message.
JmiException(java.lang.Object objectInError, RefObject elementInError, java.lang.String msg)
          Constructs an JmiException with the specified detail message.
JmiException(RefObject elementInError)
          Constructs new JmiException without detail message.
JmiException(RefObject elementInError, java.lang.String msg)
          Constructs an JmiException with the specified detail message.
JmiException(java.lang.String msg)
          Constructs an JmiException with the specified detail message.
 
Method Summary
 RefObject getElementInError()
          Returns element in error.
 java.lang.Object getObjectInError()
          Returns object in error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmiException

public JmiException()
Constructs new JmiException without detail message.


JmiException

public JmiException(java.lang.String msg)
Constructs an JmiException with the specified detail message.

Parameters:
msg - the detail message.

JmiException

public JmiException(RefObject elementInError)
Constructs new JmiException without detail message.

Parameters:
elementInError - JMI object in error.

JmiException

public JmiException(RefObject elementInError,
                    java.lang.String msg)
Constructs an JmiException with the specified detail message.

Parameters:
elementInError - JMI object in error.
msg - the detail message.

JmiException

public JmiException(java.lang.Object objectInError,
                    RefObject elementInError)
Constructs new JmiException without detail message.

Parameters:
objectInError - Value that caused the error.
elementInError - JMI object in error.

JmiException

public JmiException(java.lang.Object objectInError,
                    RefObject elementInError,
                    java.lang.String msg)
Constructs an JmiException with the specified detail message.

Parameters:
objectInError - Value that caused the error.
elementInError - JMI object in error.
msg - the detail message.
Method Detail

getElementInError

public RefObject getElementInError()
Returns element in error.

Returns:
element in error.

getObjectInError

public java.lang.Object getObjectInError()
Returns object in error.

Returns:
object in error