org.proteinshader.structure.exceptions
Class ColorOutOfRangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.proteinshader.structure.exceptions.ColorOutOfRangeException
All Implemented Interfaces:
Serializable

public class ColorOutOfRangeException
extends Exception

Used to report that a color value is out of range. For Drawable objects, color values (red, green, blue, alpha) should be in the range of 0.0 to 1.0, inclusive.

See Also:
Serialized Form

Constructor Summary
ColorOutOfRangeException()
          Sets the default message to "ERROR: A color value was out of range".
ColorOutOfRangeException(String message)
          The message given this constructor can be retrieved using getMessage().
 
Method Summary
 
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

ColorOutOfRangeException

public ColorOutOfRangeException()
Sets the default message to "ERROR: A color value was out of range". This message can be retrieved using getMessage().


ColorOutOfRangeException

public ColorOutOfRangeException(String message)
The message given this constructor can be retrieved using getMessage().

Parameters:
message - a description of the problem.


Copyright © 2007-2008