Synergy Home Page

au.edu.swin.synergy.plugin.userdb
Class BInvalidPropertyException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--au.edu.swin.synergy.plugin.userdb.BInvalidPropertyException

public class BInvalidPropertyException
extends Exception

This exception should be thrown whenever a value is set in an object that doesn't fall within the required paramaters.

For example, when you set the privilege of a BPrivileged item the value must be one of a predefined set.

Author:
Tristan Austin
See Also:
Serialized Form

Field Summary
static int kInvalidNumber
          Indicates that the number provided is out of range
static int kTooShort
          Indicates that a String provided is too short
 
Constructor Summary
BInvalidPropertyException(int newState)
          Creates a new invalid property exception with the given state indicating what went wrong.
 
Method Summary
 int getState()
          Gets the state of the exception which indicates the type of problem that ocurrred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kTooShort

public static final int kTooShort
Indicates that a String provided is too short

kInvalidNumber

public static final int kInvalidNumber
Indicates that the number provided is out of range
Constructor Detail

BInvalidPropertyException

public BInvalidPropertyException(int newState)
Creates a new invalid property exception with the given state indicating what went wrong.
Parameters:
newState - kTooShort, kInvalidNumber
Method Detail

getState

public int getState()
Gets the state of the exception which indicates the type of problem that ocurrred.
Returns:
The state of the exception kTooShort or kInvalidNumber

Synergy Home Page