net.sf.qualitytest.exception
Class BlueprintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.qualitytest.exception.BlueprintException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoPublicConstructorException

public class BlueprintException
extends RuntimeException

Author:
Dominik Seichter
See Also:
Serialized Form

Constructor Summary
BlueprintException()
          Constructs a BlueprintException with the default message DEFAULT_MESSAGE.
BlueprintException(String msg)
          Constructs a BlueprintException with a message.
BlueprintException(String msg, Throwable cause)
          Constructs a BlueprintException with a message.
BlueprintException(Throwable cause)
          Constructs a new exception with the default message DEFAULT_MESSAGE.
 
Method Summary
 String getMessage()
           
 BlueprintSession getSession()
          Access the BlueprintSession during which the exception has occurred.
 void setSession(BlueprintSession session)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

BlueprintException

public BlueprintException()
Constructs a BlueprintException with the default message DEFAULT_MESSAGE.


BlueprintException

public BlueprintException(String msg)
Constructs a BlueprintException with a message.

Parameters:
msg - A message describing the error.

BlueprintException

public BlueprintException(String msg,
                          Throwable cause)
Constructs a BlueprintException with a message.

Parameters:
msg - A message describing the error.
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

BlueprintException

public BlueprintException(@Nullable
                          Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getSession

@Nullable
public BlueprintSession getSession()
Access the BlueprintSession during which the exception has occurred.

Returns:
BlueprintSession

setSession

public void setSession(BlueprintSession session)


Copyright © 2012-2013. All Rights Reserved.