|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.qualitytest.exception.BlueprintException
net.sf.qualitytest.exception.NoPublicConstructorException
public class NoPublicConstructorException
Thrown to indicate that a class does not have a public constructor and therefore blueprinting is not available.
| Field Summary | |
|---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that a given class has no public constructor. |
protected static String |
MESSAGE_WITH_NAME
Message to indicate that a given class has no public constructor. |
| Constructor Summary | |
|---|---|
NoPublicConstructorException()
Constructs an NoPublicConstructorException with the default message
DEFAULT_MESSAGE. |
|
NoPublicConstructorException(String className)
Constructs an NoPublicConstructorException with the message
MESSAGE_WITH_NAME including the given name of the class as string
representation. |
|
NoPublicConstructorException(String className,
Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_NAME including the
given name as string representation and cause. |
|
NoPublicConstructorException(Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE. |
|
| Method Summary |
|---|
| Methods inherited from class net.sf.qualitytest.exception.BlueprintException |
|---|
getMessage, getSession, setSession |
| 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 |
| Field Detail |
|---|
protected static final String DEFAULT_MESSAGE
protected static final String MESSAGE_WITH_NAME
| Constructor Detail |
|---|
public NoPublicConstructorException()
NoPublicConstructorException with the default message
DEFAULT_MESSAGE.
public NoPublicConstructorException(@Nullable
String className)
NoPublicConstructorException with the message
MESSAGE_WITH_NAME including the given name of the class as string
representation.
className - the name of the passed class
public NoPublicConstructorException(@Nullable
String className,
@Nullable
Throwable cause)
MESSAGE_WITH_NAME including the
given name as string representation and cause.
className - the name of the passed classcause - 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.)
public NoPublicConstructorException(@Nullable
Throwable cause)
DEFAULT_MESSAGE.
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.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||