org.objectweb.jorm.api
Class PException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.jorm.api.PException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PExceptionCompiler, PExceptionIO, PExceptionNaming, PExceptionProtocol, PExceptionTyping

public class PException
extends java.lang.Exception

The PException class defines the top level of the jorm exceptions.

Author:
P. Dechamboux
See Also:
Serialized Form

Constructor Summary
PException()
          It builds an new Jorm Exception.
PException(java.lang.Exception nestedException)
           
PException(java.lang.Exception e, java.lang.String error)
           
PException(java.lang.String error)
          It builds an new Jorm Exception with an error message.
 
Method Summary
 java.lang.Exception getNestedException()
          It return the DS-specific nested exception associated with this I/O JORM exception.
 void print()
          prints the error message to the console.
 
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

PException

public PException()
It builds an new Jorm Exception.


PException

public PException(java.lang.String error)
It builds an new Jorm Exception with an error message.

Parameters:
error - The string representation of the error message.

PException

public PException(java.lang.Exception e,
                  java.lang.String error)

PException

public PException(java.lang.Exception nestedException)
Method Detail

getNestedException

public java.lang.Exception getNestedException()
It return the DS-specific nested exception associated with this I/O JORM exception.

Returns:
The involved nested exception.

print

public void print()
prints the error message to the console. TBD: to a specific channel with MonoLog...