EchoPoint
1.0

echopoint.stylesheet
Class StyleSheetInvalidValueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byechopoint.stylesheet.StyleSheetInvalidValueException
All Implemented Interfaces:
java.io.Serializable

public class StyleSheetInvalidValueException
extends java.lang.RuntimeException

A StyleSheetInvalidValueException is thrown when a ClassCastException is encountered when apply a Style to a Component.

This will happen if an invalid style attribute value is stored. For example a Font style value maybe stored against a style name that is expecting a Color object.

A ClassCastException will occur, which is expected to be trapped by the StyleSheet implementation and rethrown as a StyleSheetInvalidValueException.

NOTE : StyleSheetInvalidValueException is derived from RuntimeException and hence the StyleSheet.applyTo() method is not required to declare that it throws this exception.

See Also:
Serialized Form

Constructor Summary
StyleSheetInvalidValueException(int lineNo, java.lang.String s, java.lang.Exception causeException)
          StyleSheetInvalidValueException constructor.
 
Method Summary
 java.lang.Exception getCauseException()
          Returns the base cause exception of the StyleSheetInvalidValueException or null.
 int getLineNo()
          The line number at which the exception occurred or -1.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleSheetInvalidValueException

public StyleSheetInvalidValueException(int lineNo,
                                       java.lang.String s,
                                       java.lang.Exception causeException)
StyleSheetInvalidValueException constructor.

Method Detail

getCauseException

public java.lang.Exception getCauseException()
Returns the base cause exception of the StyleSheetInvalidValueException or null.


getLineNo

public int getLineNo()
The line number at which the exception occurred or -1.


toString

public java.lang.String toString()

EchoPoint
1.0