org.itsnat.core
Class ItsNatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.itsnat.core.ItsNatException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ItsNatDOMException

public class ItsNatException
extends java.lang.RuntimeException

Is the principal unchecked exception provided by ItsNat. Every checked exception thrown internally is encapsulated inside this exception type.

Author:
Jose Maria Arranz Santamaria
See Also:
Serialized Form

Field Summary
protected  java.lang.Object context
           
 
Constructor Summary
ItsNatException(java.lang.String message)
          Creates a new instance.
ItsNatException(java.lang.String message, java.lang.Object context)
          Creates a new instance.
ItsNatException(java.lang.String message, java.lang.Throwable ex)
          Creates a new instance.
ItsNatException(java.lang.String message, java.lang.Throwable ex, java.lang.Object context)
          Creates a new instance.
ItsNatException(java.lang.Throwable ex)
          Creates a new instance.
ItsNatException(java.lang.Throwable ex, java.lang.Object context)
          Creates a new instance.
 
Method Summary
 java.lang.Object getContext()
          Returns the object context of this exception, for instance the DOM node related with the exception.
 
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
 

Field Detail

context

protected java.lang.Object context
Constructor Detail

ItsNatException

public ItsNatException(java.lang.Throwable ex)
Creates a new instance.

Parameters:
ex - the cause of this exception, is submitted to the parent exception.

ItsNatException

public ItsNatException(java.lang.String message)
Creates a new instance.

Parameters:
message - the detail message, is submitted to the parent exception.

ItsNatException

public ItsNatException(java.lang.String message,
                       java.lang.Throwable ex)
Creates a new instance.

Parameters:
ex - the cause of this exception, is submitted to the parent exception.
message - the detail message, is submitted to the parent exception.

ItsNatException

public ItsNatException(java.lang.Throwable ex,
                       java.lang.Object context)
Creates a new instance.

Parameters:
ex - the cause of this exception, is submitted to the parent exception.
context - the object context of this exception.

ItsNatException

public ItsNatException(java.lang.String message,
                       java.lang.Object context)
Creates a new instance.

Parameters:
message - the detail message, is submitted to the parent exception.
context - the object context of this exception.

ItsNatException

public ItsNatException(java.lang.String message,
                       java.lang.Throwable ex,
                       java.lang.Object context)
Creates a new instance.

Parameters:
ex - the cause of this exception, is submitted to the parent exception.
message - the detail message, is submitted to the parent exception.
context - the object context of this exception.
Method Detail

getContext

public java.lang.Object getContext()
Returns the object context of this exception, for instance the DOM node related with the exception.

Returns:
the object context of this exception. May be null.


Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.