Javadoc
The Input






/*
 * PixelException.java    1.0 97/06/07
 * Copyright (c) 1997, B. F. Caviness
 *
 * This software may be copied for any non-commercial educational use
 * as long as it contains this copyright notice.
 *
 * THE AUTHOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
 * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED.  THE AUTHOR
 * SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE COPYEE AS A
 * RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
DERIVATIVES.
 */


package sg;

/**
 * The class PixelException defines an object
 * representing an exception caused by trying to set a pixel coordinate
 * to a negative value.
 *
 * @version     1.0, 7 June 1997
 * @author      Bob Caviness
 */

public class PixelException extends Exception{

    /**
     * Constructs and initializes a PixelException.
     */
    PixelException(){
        super( "Negative pixel coordinate" );
    }

    /**
     * Constructs and initializes a PixelException.
     *
     * @param xCoor  The x coordinate of the pixel causing the exception.
     * @param yCoor  The y coordinate of the pixel causing the exception.
     */
    PixelException( int xCoor, int yCoor ){
        super( "Negative pixel coordinate: x = " + xCoor + ",y = " + yCoor );
    }
}