net.sf.qualitytest.exception
Class NoPublicConstructorException

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
                  extended by net.sf.qualitytest.exception.NoPublicConstructorException
All Implemented Interfaces:
Serializable

public class NoPublicConstructorException
extends BlueprintException

Thrown to indicate that a class does not have a public constructor and therefore blueprinting is not available.

Author:
André Rouél, Dominik Seichter
See Also:
Serialized Form

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

DEFAULT_MESSAGE

protected static final String DEFAULT_MESSAGE
Default message to indicate that a given class has no public constructor.

See Also:
Constant Field Values

MESSAGE_WITH_NAME

protected static final String MESSAGE_WITH_NAME
Message to indicate that a given class has no public constructor.

See Also:
Constant Field Values
Constructor Detail

NoPublicConstructorException

public NoPublicConstructorException()
Constructs an NoPublicConstructorException with the default message DEFAULT_MESSAGE.


NoPublicConstructorException

public NoPublicConstructorException(@Nullable
                                    String className)
Constructs an NoPublicConstructorException with the message MESSAGE_WITH_NAME including the given name of the class as string representation.

Parameters:
className - the name of the passed class

NoPublicConstructorException

public NoPublicConstructorException(@Nullable
                                    String className,
                                    @Nullable
                                    Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_NAME including the given name as string representation and cause.

Parameters:
className - the name of the passed class
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.)

NoPublicConstructorException

public NoPublicConstructorException(@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.)


Copyright © 2012-2013. All Rights Reserved.