spcp7.imagegallery.abstractionlayer.exception
Class RangeNotValidException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by spcp7.imagegallery.abstractionlayer.exception.RangeNotValidException
All Implemented Interfaces:
java.io.Serializable

public class RangeNotValidException
extends java.lang.Exception

This exception should be thrown hen a provided range with upper and lower borders is not valid.

Author:
Phillip Merensky
See Also:
Exception, Serialized Form

Constructor Summary
RangeNotValidException(int rangeFrom, int rangeTo)
           
RangeNotValidException(int rangeFrom, int rangeTo, java.lang.String message)
           
RangeNotValidException(int rangeFrom, int rangeTo, java.lang.String message, java.lang.Throwable cause)
           
RangeNotValidException(int rangeFrom, int rangeTo, java.lang.Throwable cause)
           
 
Method Summary
 int getRangeFrom()
           
 int getRangeTo()
           
 
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
 

Constructor Detail

RangeNotValidException

public RangeNotValidException(int rangeFrom,
                              int rangeTo)
Parameters:
rangeFrom - the violating lower border.
rangeTo - the violating upper border.

RangeNotValidException

public RangeNotValidException(int rangeFrom,
                              int rangeTo,
                              java.lang.String message)
Parameters:
rangeFrom - the violating lower border.
rangeTo - the violating upper border.
message -

RangeNotValidException

public RangeNotValidException(int rangeFrom,
                              int rangeTo,
                              java.lang.Throwable cause)
Parameters:
rangeFrom - the violating lower border.
rangeTo - the violating upper border.
cause -

RangeNotValidException

public RangeNotValidException(int rangeFrom,
                              int rangeTo,
                              java.lang.String message,
                              java.lang.Throwable cause)
Parameters:
rangeFrom - the violating lower border.
rangeTo - the violating upper border.
message -
cause -
Method Detail

getRangeFrom

public int getRangeFrom()
Returns:
the violating lower border.

getRangeTo

public int getRangeTo()
Returns:
he violating upper border.


Copyright © 2008. All Rights Reserved.