com.unitesk.atp.dynattrs
Class AttributeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.unitesk.atp.dynattrs.AttributeException
All Implemented Interfaces:
Serializable

public class AttributeException
extends RuntimeException

This exception reports about various problems with attribute: wrong name, type, acces violation etc. Exception provides information about object and attribute. A cause of exception contains additional information.

Version:
$Id: AttributeException.java,v 1.1 2004/10/09 06:19:04 all-x Exp $
Author:
Alexey Demakov
See Also:
Serialized Form

Field Summary
protected  String name
           
protected  Object obj
           
protected  Object value
           
 
Constructor Summary
AttributeException(Object obj, String name)
           
AttributeException(Object obj, String name, Object value)
           
AttributeException(Object obj, String name, Object value, Throwable cause)
           
 
Method Summary
 String getMessage()
           
 String getName()
           
 Object getObject()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

obj

protected Object obj

name

protected String name

value

protected Object value
Constructor Detail

AttributeException

public AttributeException(Object obj,
                          String name)
Parameters:
obj - Attributed object.
name - Attribute name.

AttributeException

public AttributeException(Object obj,
                          String name,
                          Object value)
Parameters:
obj - Attributed object.
name - Attribute name.
value - Attribute value.

AttributeException

public AttributeException(Object obj,
                          String name,
                          Object value,
                          Throwable cause)
Parameters:
obj - Attributed object.
name - Attribute name.
value - Attribute value.
cause - Cause of this exception.
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getObject

public Object getObject()
Returns:
Attributed object.

getName

public String getName()
Returns:
Attribute name.

getValue

public Object getValue()
Returns:
Attribute value.


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.