Package org.web3d.vrml.lang
Class FieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.web3d.vrml.lang.VRMLException
org.web3d.vrml.lang.FieldException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FieldExistsException
,InvalidFieldAccessException
,InvalidFieldConnectionException
,InvalidFieldException
,InvalidFieldFormatException
,InvalidFieldTypeException
,InvalidFieldValueException
Superclass of all exceptions describing errors in fields.
- Version:
- $Revision: 1.3 $
- Author:
- Justin Couch
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a default exception that does not contain a message.FieldException
(String msg) Create an exception that contains the given message. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the field that this exception was generated for.void
setFieldName
(String name) Set the name of the field that this exception was generated for.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
fieldName
The name of the field that this exception has been generated for
-
-
Constructor Details
-
FieldException
public FieldException()Create a default exception that does not contain a message. -
FieldException
Create an exception that contains the given message.- Parameters:
msg
- The message to associate
-
-
Method Details
-
setFieldName
Set the name of the field that this exception was generated for. A null value will clear the current field name.- Parameters:
name
- The name of the field
-
getFieldName
Get the name of the field that this exception was generated for. May be null if not set.- Returns:
- The current name or null if not set
-