org.objectweb.jorm.api

Class PException

Known Direct Subclasses:
PExceptionCompiler, PExceptionIO, PExceptionNaming, PExceptionProtocol, PExceptionTyping

public class PException
extends Exception

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

Author:
P. Dechamboux

Constructor Summary

PException()
It builds an new Jorm Exception.
PException(Exception nestedException)
PException(Exception e, String error)
PException(String error)
It builds an new Jorm Exception with an error message.

Method Summary

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.

Constructor Details

PException

public PException()
It builds an new Jorm Exception.


PException

public PException(Exception nestedException)


PException

public PException(Exception e,
                  String error)


PException

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

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

Method Details

getNestedException

public 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...