Xj3D VRML/X3D Code API

org.web3d.vrml.lang
Class UnknownTemplateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.web3d.vrml.lang.VRMLException
                  extended byorg.web3d.vrml.lang.UnknownTemplateException
All Implemented Interfaces:
java.io.Serializable

public class UnknownTemplateException
extends VRMLException

Exception indicating that a node template could not be matched to anything requested internally.

This is a fairly rare exception and only occurs when we can't map an EXTERNPROTO to an underlying definition. Mostly this will occur at runtime but may in fact be used when the user attempts to create or access nodes that use this information.

Version:
$Revision: 1.3 $
Author:
Justin Couch
See Also:
Serialized Form

Constructor Summary
UnknownTemplateException(java.lang.String name)
          Create a new exception with no message.
UnknownTemplateException(java.lang.String name, java.lang.String msg)
          Create a new exception with a message.
 
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

UnknownTemplateException

public UnknownTemplateException(java.lang.String name)
Create a new exception with no message.

Parameters:
name - The name of the node type that caused the error

UnknownTemplateException

public UnknownTemplateException(java.lang.String name,
                                java.lang.String msg)
Create a new exception with a message.

Parameters:
name - The name of the node type that caused the error
msg - The message associated with this exception

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium