net.sf.qualitycheck.exception
Class IllegalNotGreaterOrEqualThanException

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

public class IllegalNotGreaterOrEqualThanException
extends RuntimeException

Thrown to indicate that a method was passed arguments which was expected to be greater or equal than another object but was not.

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

Field Summary
protected static String DEFAULT_MESSAGE
          Default message to indicate that the given arguments must be greater or equal then another object.
 
Constructor Summary
IllegalNotGreaterOrEqualThanException()
          Constructs an IllegalNotGreaterOrEqualThanException with the default message DEFAULT_MESSAGE.
IllegalNotGreaterOrEqualThanException(String message)
          Constructs an IllegalNotGreaterThanException with a given message.
IllegalNotGreaterOrEqualThanException(String message, Throwable cause)
          Constructs a new exception with a given message.
IllegalNotGreaterOrEqualThanException(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 given arguments must be greater or equal then another object.

See Also:
Constant Field Values
Constructor Detail

IllegalNotGreaterOrEqualThanException

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


IllegalNotGreaterOrEqualThanException

public IllegalNotGreaterOrEqualThanException(@Nonnull
                                             String message)
Constructs an IllegalNotGreaterThanException with a given message.

Parameters:
message - explains why the object must greater than another object

IllegalNotGreaterOrEqualThanException

public IllegalNotGreaterOrEqualThanException(@Nonnull
                                             String message,
                                             @Nullable
                                             Throwable cause)
Constructs a new exception with a given message.

Parameters:
message - explains why the object must greater or equal than another object
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.)

IllegalNotGreaterOrEqualThanException

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