org.w3c.tools.resources
Class IllegalAttributeAccess

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.w3c.tools.resources.IllegalAttributeAccess
All Implemented Interfaces:
java.io.Serializable

public class IllegalAttributeAccess
extends java.lang.RuntimeException

The generic exception for illegal attribute access. Depending on this parameter this exception can indicate:

See Also:
Serialized Form

Constructor Summary
IllegalAttributeAccess(AttributeHolder holder, Attribute attr)
          This attribute isn't defined by the given holder.
IllegalAttributeAccess(AttributeHolder holder, Attribute attr, java.lang.Object value)
          The proposed value for the attribute doesn't match the expected type.
IllegalAttributeAccess(AttributeHolder holder, Attribute attr, java.lang.String accessor)
          Invalid access to an attribute value.
IllegalAttributeAccess(AttributeHolder holder, int idx)
          This attribute index isn't valid for the given holder.
IllegalAttributeAccess(AttributeHolder holder, java.lang.String name)
          Invalid access to an attribute.
 
Method Summary
 
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

IllegalAttributeAccess

public IllegalAttributeAccess(AttributeHolder holder,
                              Attribute attr)
This attribute isn't defined by the given holder.

Parameters:
holder - The holder that got the exception.
attr - The unknown atribute.

IllegalAttributeAccess

public IllegalAttributeAccess(AttributeHolder holder,
                              int idx)
This attribute index isn't valid for the given holder.

Parameters:
holder - The holder that got the exception.
idx - The erred index.

IllegalAttributeAccess

public IllegalAttributeAccess(AttributeHolder holder,
                              Attribute attr,
                              java.lang.Object value)
The proposed value for the attribute doesn't match the expected type.

Parameters:
holder - The holder that got the exception.
attribute - The attribute that you were trying to set.
value - The erred value.

IllegalAttributeAccess

public IllegalAttributeAccess(AttributeHolder holder,
                              Attribute attr,
                              java.lang.String accessor)
Invalid access to an attribute value. You used an invalid specific accessor to get the value of an attribute.

Parameters:
holder - The holder that got the exception.
attr - The attribute that was accessed.
accessor - The name of the invalid accessor used.

IllegalAttributeAccess

public IllegalAttributeAccess(AttributeHolder holder,
                              java.lang.String name)
Invalid access to an attribute.

Parameters:
golder - The attribute holder.
name - The name of the attribute that wan't found.