ProgramixGenericLib v5.0.1

com.programix.value
Class RangeValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.programix.value.ValueException
                  extended by com.programix.value.RangeValueException
All Implemented Interfaces:
Serializable

public class RangeValueException
extends ValueException

A kind of ValueException thrown to indicate that a Value can not fit in the range of values for a given type. This is a RuntimeException, so use of a try/catch block is not required.

Author:
Paul Hyde
See Also:
Serialized Form

Constructor Summary
RangeValueException()
           
RangeValueException(String message)
           
RangeValueException(String message, Throwable cause)
           
RangeValueException(Throwable cause)
           
 
Method Summary
static void throwForByte()
           
static void throwForInt()
           
static void throwForLong()
           
static void throwForShort()
           
 
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

RangeValueException

public RangeValueException(String message,
                           Throwable cause)

RangeValueException

public RangeValueException(Throwable cause)

RangeValueException

public RangeValueException(String message)

RangeValueException

public RangeValueException()
Method Detail

throwForByte

public static void throwForByte()
                         throws RangeValueException
Throws:
RangeValueException

throwForShort

public static void throwForShort()
                          throws RangeValueException
Throws:
RangeValueException

throwForInt

public static void throwForInt()
                        throws RangeValueException
Throws:
RangeValueException

throwForLong

public static void throwForLong()
                         throws RangeValueException
Throws:
RangeValueException

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.