Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class nl.coffee.math.ExceptionSupport

java.lang.Object
  |
  +--nl.coffee.math.ExceptionSupport

public class ExceptionSupport
extends java.lang.Object
This class provides exception throwing support for classes in this package. Provided are:

Since:
JUMP_1.0
Version:
1.0 199809.24
Author:
Ernst de Haan

Field Summary
static java.lang.String A_IS_NULL_MESSAGE
          The message for an exception when some parameter a is null.
static java.lang.String B_IS_NULL_MESSAGE
          The message for an exception when some parameter b is null.
static java.lang.String DENOMINATOR_IS_NULL_MESSAGE
          The message for an exception when some parameter denominator is null.
static java.lang.String DIVIDE_BY_ZERO_MESSAGE
          The message for an exception thrown in case of a divide by zero.
static java.lang.String N_IS_NULL_MESSAGE
          The message for an exception when some parameter n is null.
static java.lang.String NUMERATOR_IS_NULL_MESSAGE
          The message for an exception when some parameter numerator is null.
static java.lang.String OPERAND_IS_NULL_MESSAGE
          The message for an exception when some parameter operand is null.
static java.lang.String OPERANDS_IS_NULL_MESSAGE
          The message for an exception when some parameter operands is null.
static java.lang.String S_IS_NULL_MESSAGE
          The message for an exception when some parameter s is null.
 
Method Summary
static void checkANotNull(java.lang.Object a)
           
static void checkBNotNull(java.lang.Object b)
           
static void checkDenominatorNotNull(IntegerNumber demominator)
           
static void checkDivideByZero(RealNumber n)
           
static void checkNNotNull(java.lang.Object n)
           
static void checkNumeratorNotNull(IntegerNumber numerator)
           
static void checkOperandNotNull(RealNumber operand)
           
static void checkSNotNull(java.lang.Object s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

A_IS_NULL_MESSAGE

public static final java.lang.String A_IS_NULL_MESSAGE
The message for an exception when some parameter a is null.

B_IS_NULL_MESSAGE

public static final java.lang.String B_IS_NULL_MESSAGE
The message for an exception when some parameter b is null.

N_IS_NULL_MESSAGE

public static final java.lang.String N_IS_NULL_MESSAGE
The message for an exception when some parameter n is null.

S_IS_NULL_MESSAGE

public static final java.lang.String S_IS_NULL_MESSAGE
The message for an exception when some parameter s is null.

OPERAND_IS_NULL_MESSAGE

public static final java.lang.String OPERAND_IS_NULL_MESSAGE
The message for an exception when some parameter operand is null.

OPERANDS_IS_NULL_MESSAGE

public static final java.lang.String OPERANDS_IS_NULL_MESSAGE
The message for an exception when some parameter operands is null.

NUMERATOR_IS_NULL_MESSAGE

public static final java.lang.String NUMERATOR_IS_NULL_MESSAGE
The message for an exception when some parameter numerator is null.

DENOMINATOR_IS_NULL_MESSAGE

public static final java.lang.String DENOMINATOR_IS_NULL_MESSAGE
The message for an exception when some parameter denominator is null.

DIVIDE_BY_ZERO_MESSAGE

public static final java.lang.String DIVIDE_BY_ZERO_MESSAGE
The message for an exception thrown in case of a divide by zero.
Method Detail

checkANotNull

public static void checkANotNull(java.lang.Object a)
                         throws java.lang.IllegalArgumentException

checkBNotNull

public static void checkBNotNull(java.lang.Object b)
                         throws java.lang.IllegalArgumentException

checkNNotNull

public static void checkNNotNull(java.lang.Object n)
                         throws java.lang.IllegalArgumentException

checkSNotNull

public static void checkSNotNull(java.lang.Object s)
                         throws java.lang.IllegalArgumentException

checkNumeratorNotNull

public static void checkNumeratorNotNull(IntegerNumber numerator)
                                 throws java.lang.IllegalArgumentException

checkDenominatorNotNull

public static void checkDenominatorNotNull(IntegerNumber demominator)
                                   throws java.lang.IllegalArgumentException

checkOperandNotNull

public static void checkOperandNotNull(RealNumber operand)
                               throws java.lang.IllegalArgumentException

checkDivideByZero

public static void checkDivideByZero(RealNumber n)
                             throws java.lang.ArithmeticException

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD