net.sf.qualitytest.exception
Class BlueprintCycleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.)
getSession
@Nonnull
public BlueprintSession getSession()
- Access the
BlueprintSession
during which the exception has occurred.
- Returns:
BlueprintSession
Copyright © 2012-2013. All Rights Reserved.