FileDocCategorySizeDatePackage
PositiveMoney.javaAPI DocExample414Thu Nov 08 00:23:04 GMT 2001com.ora.rmibook.chapter17.activation.valueobjects

PositiveMoney.java

package com.ora.rmibook.chapter17.activation.valueobjects;


public class PositiveMoney extends Money {
    public PositiveMoney(Integer cents) throws Exception {
        this (cents.intValue());
    }

    public PositiveMoney(int cents) throws Exception {
        super (cents);
        if (_cents <= 0) {
            throw new Exception("Bad Value for Money");
        }
        return;
    }
}