net.sf.qualitytest.exception
Class IllegalClassWithPublicDefaultConstructorException

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

public class IllegalClassWithPublicDefaultConstructorException
extends RuntimeException

Thrown to indicate that a class has a public default constructor which should be private.

Author:
Dominik Seichter
See Also:
Serialized Form

Field Summary
protected static String DEFAULT_MESSAGE
          Default message to indicate that the a given argument must not be empty.
protected static String MESSAGE_WITH_NAME
          Message to indicate that the the given argument with name must not be empty.
 
Constructor Summary
IllegalClassWithPublicDefaultConstructorException()
          Constructs an IllegalClassWithPublicDefaultConstructorException with the default message DEFAULT_MESSAGE.
IllegalClassWithPublicDefaultConstructorException(String name)
          Constructs an IllegalClassWithPublicDefaultConstructorException with the message MESSAGE_WITH_NAME including the given name of the class as string representation.
IllegalClassWithPublicDefaultConstructorException(String name, Throwable cause)
          Constructs a new exception with the message MESSAGE_WITH_NAME including the given name as string representation and cause.
IllegalClassWithPublicDefaultConstructorException(Throwable cause)
          Constructs a new exception with the default message DEFAULT_MESSAGE.
 
Method Summary
 
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
 

Field Detail

DEFAULT_MESSAGE

protected static final String DEFAULT_MESSAGE
Default message to indicate that the a given argument must not be empty.

See Also:
Constant Field Values

MESSAGE_WITH_NAME

protected static final String MESSAGE_WITH_NAME
Message to indicate that the the given argument with name must not be empty.

See Also:
Constant Field Values
Constructor Detail

IllegalClassWithPublicDefaultConstructorException

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


IllegalClassWithPublicDefaultConstructorException

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

Parameters:
name - the name of the class

IllegalClassWithPublicDefaultConstructorException

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

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

IllegalClassWithPublicDefaultConstructorException

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