com.ovh.ws.api
Enum OvhWsException.Category

java.lang.Object
  extended by java.lang.Enum<OvhWsException.Category>
      extended by com.ovh.ws.api.OvhWsException.Category
All Implemented Interfaces:
Serializable, Comparable<OvhWsException.Category>
Enclosing class:
OvhWsException

public static enum OvhWsException.Category
extends Enum<OvhWsException.Category>


Enum Constant Summary
CallException
           
FatalException
           
LockException
           
RecoverableException
           
RightException
           
SecurityException
           
SessionException
           
 
Method Summary
static OvhWsException.Category fromInteger(Integer status)
           
 Integer toInteger()
           
static OvhWsException.Category valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OvhWsException.Category[] 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

CallException

public static final OvhWsException.Category CallException

SessionException

public static final OvhWsException.Category SessionException

RightException

public static final OvhWsException.Category RightException

RecoverableException

public static final OvhWsException.Category RecoverableException

SecurityException

public static final OvhWsException.Category SecurityException

LockException

public static final OvhWsException.Category LockException

FatalException

public static final OvhWsException.Category FatalException
Method Detail

values

public static OvhWsException.Category[] 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 (OvhWsException.Category c : OvhWsException.Category.values())
    System.out.println(c);

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

valueOf

public static OvhWsException.Category valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toInteger

public Integer toInteger()

fromInteger

public static OvhWsException.Category fromInteger(Integer status)
                                           throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2012 OVH. All Rights Reserved.