pt.digitalis.dif.exception.controller
Class ControllerException

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.controller.ControllerException
All Implemented Interfaces:
Serializable, IContextException
Direct Known Subclasses:
IllegalFileUploadException, LicenseViolationException, SessionTimeoutException, UserHasNoAccessToStage

public class ControllerException
extends DIFException

Represents an exception occurred in the controller tasks (AbstractChAL or Dispatcher)

Author:
Pedro Viegas pviegas@digitalis.pt
See Also:
Serialized Form
Created on:
Dec 21, 2007

Constructor Summary
ControllerException(ControllerExecutionStep step, Exception exception)
          Constructs a new ControllerException from an Exception.
ControllerException(ControllerExecutionStep step, String reason)
          Constructs a new ControllerException from a reason for the exception.
ControllerException(ControllerExecutionStep step, String reason, Exception exception)
          Constructs a new ControllerException accepting a reason for the exception
 
Method Summary
 String getRenderedExceptionContext()
          Renders the exception context.
 ControllerExecutionStep getStep()
           
 boolean isGeneratedFromException()
           
 
Methods inherited from class pt.digitalis.dif.exception.DIFException
addToExceptionContext, getExceptionContext, 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

ControllerException

public ControllerException(ControllerExecutionStep step,
                           Exception exception)
Constructs a new ControllerException from an Exception.

Parameters:
exception - the exception to encapsulate
step - the execution step

ControllerException

public ControllerException(ControllerExecutionStep step,
                           String reason)
Constructs a new ControllerException from a reason for the exception.

Parameters:
reason - the exception cause
step - the execution step

ControllerException

public ControllerException(ControllerExecutionStep step,
                           String reason,
                           Exception exception)
Constructs a new ControllerException accepting a reason for the exception

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

getRenderedExceptionContext

public String getRenderedExceptionContext()
Description copied from interface: IContextException
Renders the exception context.

Specified by:
getRenderedExceptionContext in interface IContextException
Overrides:
getRenderedExceptionContext in class DIFException
Returns:
a String with the rendered context.
See Also:
IContextException.getRenderedExceptionContext()

getStep

public ControllerExecutionStep getStep()
Returns:
the step

isGeneratedFromException

public boolean isGeneratedFromException()
Returns:
the generatedFromException


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