Package xj3d.filter
Class FilterProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.web3d.vrml.lang.VRMLException
xj3d.filter.FilterProcessingException
- All Implemented Interfaces:
Serializable
Derived VRMLException for use within the filter change when a filter would
like to exit with a specific error code beyond the basic predefined codes.
Effectively this implementation just turns the abstract class into a concrete class without adding any additional implementation.
- Version:
- $Revision: 1.1 $
- Author:
- Alan Hudson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFilterProcessingException
(String name, int code) Create an instance of the exception for the named filter, with the specific error code and no custom message.FilterProcessingException
(String name, int code, String message) Create an instance of the exception for the named filter, with the specific error code and a custom message. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the error code that was assigned to this exception.Fetch the name of the filter that generated this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FilterProcessingException
Create an instance of the exception for the named filter, with the specific error code and no custom message.- Parameters:
name
- The name of the filter that generated this exceptioncode
- The error code to associate with this exception
-
FilterProcessingException
Create an instance of the exception for the named filter, with the specific error code and a custom message.- Parameters:
name
- The name of the filter that generated this exceptioncode
- The error code to associate with this exceptionmessage
-
-
-
Method Details
-
getErrorCode
public int getErrorCode()Get the error code that was assigned to this exception.- Returns:
- The error code assigned. Always non-zero
-
getFilterName
Fetch the name of the filter that generated this exception.- Returns:
- A non-null name of the filter
-