org.proteinshader.structure.exceptions
Class ColorOutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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