pt.digitalis.dif.exception
Class InternalFrameworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by pt.digitalis.dif.exception.DIFException
              extended by pt.digitalis.dif.exception.InternalFrameworkException
All Implemented Interfaces:
Serializable, IContextException
Direct Known Subclasses:
BusinessFlowException

public class InternalFrameworkException
extends DIFException

Represents an internal framework Exception. The execution context is passed into the exception.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
See Also:
DIFException, Serialized Form
Created on:
2007/03/16

Constructor Summary
InternalFrameworkException(Exception exception, IDIFContext difContext)
          Constructs a new InternalFrameworkException from an Exception.
InternalFrameworkException(String reason, Exception exception, IDIFContext difContext)
          Constructs a new InternalFrameworkException accepting a reason for the exception
InternalFrameworkException(String reason, IDIFContext difContext)
          Constructs a new InternalFrameworkException from a reason for the exception.
 
Method Summary
 IDIFContext getDIFContext()
          Returns the stored DIFContext.
 void setDifContext(IDIFContext difContext)
          Sets the DIFContext content.
 
Methods inherited from class pt.digitalis.dif.exception.DIFException
addToExceptionContext, getExceptionContext, getRenderedExceptionContext, setExceptionContext
 
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

InternalFrameworkException

public InternalFrameworkException(Exception exception,
                                  IDIFContext difContext)
Constructs a new InternalFrameworkException from an Exception.

Parameters:
exception - the exception to encapsulate
difContext - the execution context

InternalFrameworkException

public InternalFrameworkException(String reason,
                                  IDIFContext difContext)
Constructs a new InternalFrameworkException from a reason for the exception.

Parameters:
reason - the exception cause
difContext - the execution context

InternalFrameworkException

public InternalFrameworkException(String reason,
                                  Exception exception,
                                  IDIFContext difContext)
Constructs a new InternalFrameworkException accepting a reason for the exception

Parameters:
reason - the exception cause
exception - the exception to encapsulate
difContext - the execution context
Method Detail

getDIFContext

public IDIFContext getDIFContext()
Returns the stored DIFContext.

Returns:
the difContext

setDifContext

public void setDifContext(IDIFContext difContext)
Sets the DIFContext content.

Parameters:
difContext - the difContext to set


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.