com.ecebs.rtd.enabler.types
Class RTDEException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ecebs.rtd.enabler.types.RTDEException
All Implemented Interfaces:
Serializable

public class RTDEException
extends Exception

An exception that allows for an Outcome to be thrown by an operation.

Author:
kyleb
See Also:
Serialized Form

Constructor Summary
RTDEException(Outcome outcome)
           
RTDEException(Outcome outcome, String message)
           
RTDEException(Outcome outcome, String message, Throwable cause)
           
RTDEException(Outcome outcome, Throwable cause)
           
 
Method Summary
 String getLocalizedMessage()
           
 Outcome getOutcome()
          Get the outcome held by the exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RTDEException

public RTDEException(Outcome outcome)
Parameters:
outcome -

RTDEException

public RTDEException(Outcome outcome,
                     String message)
Parameters:
outcome -
message -

RTDEException

public RTDEException(Outcome outcome,
                     Throwable cause)
Parameters:
outcome -
cause -

RTDEException

public RTDEException(Outcome outcome,
                     String message,
                     Throwable cause)
Parameters:
outcome -
message -
cause -
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getOutcome

public Outcome getOutcome()
Get the outcome held by the exception

Returns:
held outcome


Copyright © 2013 Ecebs Ltd. All Rights Reserved.