pl.bristleback.server.bristle.exceptions.handlers
Enum ActionExceptionType

java.lang.Object
  extended by java.lang.Enum<ActionExceptionType>
      extended by pl.bristleback.server.bristle.exceptions.handlers.ActionExceptionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ActionExceptionType>

public enum ActionExceptionType
extends java.lang.Enum<ActionExceptionType>

Enumeration of exception types thrown while processing request from user.

Created on: 2010-10-23 23:56:43

Author:
Wojciech Niemiec

Enum Constant Summary
ACTION_NAME_NOT_SPECIFIED
          This exception occurs when token sent by user doesn't contain action type element.
ACTION_NOT_FOUND
          Occurs when action with name given by user in token variable is not found.
RIGHTS_NOT_SUFFICIENT
          Occurs when connector, which invokes given action, doesn't have one or more rights required by this action.
 
Method Summary
static ActionExceptionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ActionExceptionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTION_NAME_NOT_SPECIFIED

public static final ActionExceptionType ACTION_NAME_NOT_SPECIFIED
This exception occurs when token sent by user doesn't contain action type element. Action type element name is specified by BristleConstants class.


ACTION_NOT_FOUND

public static final ActionExceptionType ACTION_NOT_FOUND
Occurs when action with name given by user in token variable is not found.


RIGHTS_NOT_SUFFICIENT

public static final ActionExceptionType RIGHTS_NOT_SUFFICIENT
Occurs when connector, which invokes given action, doesn't have one or more rights required by this action.

Method Detail

values

public static ActionExceptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ActionExceptionType c : ActionExceptionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ActionExceptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.