com.ovh.ws.api
Enum OvhWsException.Type

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

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


Enum Constant Summary
AccountTooLow
           
ActionAlreadyDone
           
ActionImpossible
           
ActionInProgress
           
ActionPending
           
AgreementRequired
           
AssociationIncompatible
           
BlockingOperation
           
BreachOfContract
           
CacheReadError
           
CacheWriteError
           
CodeInjection
           
ConnectionClosed
           
ConnectionFailed
           
ConnectionTimeout
           
DataBaseError
           
Deprecated
           
Forbidden
           
FunctionDisabled
           
GenericException
           
IncompatibleParameters
           
IncompatibleState
           
InsufficientRights
           
IntegrityCheckFailure
           
InternalError
           
InvalidArgument
           
InvalidCode
           
IpSecurityError
           
LockedByAnother
           
LockedByCustomer
           
LoginFailed
           
MessageTimeout
           
MissingArgument
           
NoAnswer
           
NoChange
           
NoMoreData
           
NonUniqObject
           
NotImplemented
           
NotSupported
           
ObjectAlreadyExists
           
ObjectIncompatible
           
ObjectNotFound
           
OfferUpgradeNeeded
           
OrderRequired
           
OutOfSync
           
PermissionDenied
           
ProtocolError
           
QuotaReached
           
ReadonlySession
           
SecurityWarning
           
ServerError
           
ServerUnreachable
           
ServiceExpired
           
ServiceInMaintenance
           
SessionCorrupted
           
SessionExpired
           
SessionNotFound
           
Timeout
           
TooManyChanges
           
TooManySessions
           
UnableToLock
           
Unavailable
           
UnconsistentData
           
UnknownParameter
           
UnrecognizedError
           
UnrecognizedFormat
           
 
Method Summary
static OvhWsException.Type fromStatus(int status)
           
 int getStatus()
           
static OvhWsException.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OvhWsException.Type[] 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

GenericException

public static final OvhWsException.Type GenericException

MissingArgument

public static final OvhWsException.Type MissingArgument

InvalidArgument

public static final OvhWsException.Type InvalidArgument

IncompatibleParameters

public static final OvhWsException.Type IncompatibleParameters

UnconsistentData

public static final OvhWsException.Type UnconsistentData

ObjectNotFound

public static final OvhWsException.Type ObjectNotFound

ObjectAlreadyExists

public static final OvhWsException.Type ObjectAlreadyExists

NoChange

public static final OvhWsException.Type NoChange

NonUniqObject

public static final OvhWsException.Type NonUniqObject

TooManyChanges

public static final OvhWsException.Type TooManyChanges

ActionPending

public static final OvhWsException.Type ActionPending

FunctionDisabled

public static final OvhWsException.Type FunctionDisabled

ActionInProgress

public static final OvhWsException.Type ActionInProgress

ActionImpossible

public static final OvhWsException.Type ActionImpossible

ActionAlreadyDone

public static final OvhWsException.Type ActionAlreadyDone

NotImplemented

public static final OvhWsException.Type NotImplemented

Deprecated

public static final OvhWsException.Type Deprecated

Unavailable

public static final OvhWsException.Type Unavailable

NoAnswer

public static final OvhWsException.Type NoAnswer

UnknownParameter

public static final OvhWsException.Type UnknownParameter

SessionExpired

public static final OvhWsException.Type SessionExpired

SessionNotFound

public static final OvhWsException.Type SessionNotFound

SessionCorrupted

public static final OvhWsException.Type SessionCorrupted

TooManySessions

public static final OvhWsException.Type TooManySessions

LoginFailed

public static final OvhWsException.Type LoginFailed

IpSecurityError

public static final OvhWsException.Type IpSecurityError

PermissionDenied

public static final OvhWsException.Type PermissionDenied

InsufficientRights

public static final OvhWsException.Type InsufficientRights

ReadonlySession

public static final OvhWsException.Type ReadonlySession

OfferUpgradeNeeded

public static final OvhWsException.Type OfferUpgradeNeeded

OrderRequired

public static final OvhWsException.Type OrderRequired

AssociationIncompatible

public static final OvhWsException.Type AssociationIncompatible

AgreementRequired

public static final OvhWsException.Type AgreementRequired

AccountTooLow

public static final OvhWsException.Type AccountTooLow

BreachOfContract

public static final OvhWsException.Type BreachOfContract

ServiceExpired

public static final OvhWsException.Type ServiceExpired

QuotaReached

public static final OvhWsException.Type QuotaReached

SecurityWarning

public static final OvhWsException.Type SecurityWarning

Forbidden

public static final OvhWsException.Type Forbidden

IntegrityCheckFailure

public static final OvhWsException.Type IntegrityCheckFailure

InternalError

public static final OvhWsException.Type InternalError

DataBaseError

public static final OvhWsException.Type DataBaseError

ServerUnreachable

public static final OvhWsException.Type ServerUnreachable

ConnectionClosed

public static final OvhWsException.Type ConnectionClosed

ConnectionFailed

public static final OvhWsException.Type ConnectionFailed

ConnectionTimeout

public static final OvhWsException.Type ConnectionTimeout

ProtocolError

public static final OvhWsException.Type ProtocolError

MessageTimeout

public static final OvhWsException.Type MessageTimeout

Timeout

public static final OvhWsException.Type Timeout

ServerError

public static final OvhWsException.Type ServerError

CacheReadError

public static final OvhWsException.Type CacheReadError

CacheWriteError

public static final OvhWsException.Type CacheWriteError

UnrecognizedFormat

public static final OvhWsException.Type UnrecognizedFormat

InvalidCode

public static final OvhWsException.Type InvalidCode

CodeInjection

public static final OvhWsException.Type CodeInjection

IncompatibleState

public static final OvhWsException.Type IncompatibleState

NotSupported

public static final OvhWsException.Type NotSupported

ObjectIncompatible

public static final OvhWsException.Type ObjectIncompatible

BlockingOperation

public static final OvhWsException.Type BlockingOperation

NoMoreData

public static final OvhWsException.Type NoMoreData

UnableToLock

public static final OvhWsException.Type UnableToLock

LockedByAnother

public static final OvhWsException.Type LockedByAnother

LockedByCustomer

public static final OvhWsException.Type LockedByCustomer

OutOfSync

public static final OvhWsException.Type OutOfSync

ServiceInMaintenance

public static final OvhWsException.Type ServiceInMaintenance

UnrecognizedError

public static final OvhWsException.Type UnrecognizedError
Method Detail

values

public static OvhWsException.Type[] 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.Type c : OvhWsException.Type.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.Type 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

getStatus

public int getStatus()

fromStatus

public static OvhWsException.Type fromStatus(int status)
                                      throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2012 OVH. All Rights Reserved.