net.sf.qualitytest.exception
Class BlueprintCycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.qualitytest.exception.BlueprintCycleException
All Implemented Interfaces:
Serializable

public class BlueprintCycleException
extends RuntimeException

Thrown to indicate a cycle in the graph while blueprinting. As a workaround you should add a hint on how to blueprint the class using BlueprintConfiguration.with.

Author:
Dominik Seichter
See Also:
Serialized Form

Constructor Summary
BlueprintCycleException(BlueprintSession session, Class<?> clazz)
          Constructs a BlueprintCycleException with the default message DEFAULT_MESSAGE.
BlueprintCycleException(BlueprintSession session, Class<?> clazz, Throwable cause)
          Constructs a BlueprintCycleException with a message.
 
Method Summary
 BlueprintSession getSession()
          Access the BlueprintSession during which the exception has occurred.
 
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

BlueprintCycleException

public BlueprintCycleException(@Nonnull
                               BlueprintSession session,
                               @Nonnull
                               Class<?> clazz)
Constructs a BlueprintCycleException with the default message DEFAULT_MESSAGE.

Parameters:
session - The current BlueprintSession giving access to the context of the error.
clazz - The class causing the cycle.

BlueprintCycleException

public BlueprintCycleException(@Nonnull
                               BlueprintSession session,
                               @Nonnull
                               Class<?> clazz,
                               Throwable cause)
Constructs a BlueprintCycleException with a message.

Parameters:
session - The current BlueprintSession giving access to the context of the error.
clazz - The class causing the cycle.
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

getSession

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

Returns:
BlueprintSession


Copyright © 2012-2013. All Rights Reserved.