com.starbase.starteam
Class NoSuchPropertyException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.starbase.starteam.NoSuchPropertyException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchPropertyException
extends java.lang.RuntimeException

An exception of this class is thrown when an invalid item property was attempted to be accessed.

See Also:
Serialized Form

Constructor Summary
NoSuchPropertyException(java.lang.String message)
          Construct a NoSuchPropertyException with a specific message.
NoSuchPropertyException(java.lang.String typeName, int nPropertyID)
          Construct a NoSuchPropertyException for a given type and property ID.
NoSuchPropertyException(java.lang.String typeName, java.lang.String propertyName)
          Construct a NoSuchPropertyException for a given type and property name.
 
Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 int getPropertyID()
          Return the ID of the property that failed to be accessed.
 java.lang.String getPropertyName()
          Return the name of the property that failed to be accessed.
 int hashCode()
          returns a unique hash for all instances of this type
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchPropertyException

public NoSuchPropertyException(java.lang.String message)
Construct a NoSuchPropertyException with a specific message.

Parameters:
message - The exception message text.

NoSuchPropertyException

public NoSuchPropertyException(java.lang.String typeName,
                               java.lang.String propertyName)
Construct a NoSuchPropertyException for a given type and property name.

Parameters:
typeName - The name of the Type.
propertyName - The name of the missing Property.

NoSuchPropertyException

public NoSuchPropertyException(java.lang.String typeName,
                               int nPropertyID)
Construct a NoSuchPropertyException for a given type and property ID.

Parameters:
typeName - The name of the Type.
nPropertyID - The ID of the missing Property.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Return the name of the property that failed to be accessed.

Returns:
the name of the property that failed to be accessed.

getPropertyID

public int getPropertyID()
Return the ID of the property that failed to be accessed.

Returns:
the ID of the property that failed to be accessed.

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type

getMessage

public java.lang.String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message string of this Throwable instance (which may be null).


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.