Skip to main content

Enum ResponseStatus.Status

com.poly.polyos

Enum ResponseStatus.Status

  • java.lang.Object
    • java.lang.Enum<ResponseStatus.Status>
      • com.poly.polyos.ResponseStatus.Status

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable <ResponseStatus.Status>

Enclosing class:
ResponseStatus


public static enum ResponseStatus.Status
extends java.lang.Enum<ResponseStatus.Status>

Status of the request

Enum Constant Summary

Enum Constant and Description

ALREADYEXISTS
Failed because it already exists

BADPARAMETER
Failed due to bad parameter

BADSTATE
Failed due to bad state

CANTFINDOBJECT
Failed because the requested resource can't be found

GENERIC
Some generic error happened

NOTAUTHORIZED
Failed because the callee is not authorized

NOTFOUND
Failed because this feature/resource is not found

NOTYETSUPPORTED
Failed because this feature/resource is not yet supported

OUTOFMEMORY
Failed due to being out of memory

OUTOFRANGE
Failed due to being out of range

OUTOFRESOURCES
Failed due to being out of resources

PORTLOCKED
Failed due to lockout

SUCCESS
Request was successful

TIMEOUT
Failed due to timeout

Method Summary

Modifier and TypeMethod and Description
static ResponseStatus.StatusvalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static ResponseStatus.Status[]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

SUCCESS

public static final ResponseStatus.Status SUCCESS
The request was successful

GENERIC

public static final ResponseStatus.Status GENERIC
A generic error happened

OUTOFMEMORY

public static final ResponseStatus.Status OUTOFMEMORY
Failed due to being out of memory

BADPARAMETER

public static final ResponseStatus.Status BADPARAMETER
Failed due to bad parameter

BADSTATE

public static final ResponseStatus.Status BADSTATE
Failed due to bad state

OUTOFRESOURCES

public static final ResponseStatus.Status OUTOFRESOURCES
Failed due to out of resource

NOTYETSUPPORTED

public static final ResponseStatus.Status NOTYETSUPPORTED
Failed because this is not yet supported

NOTFOUND

public static final ResponseStatus.Status NOTFOUND
Failed because this feature/resource is not found

NOTAUTHORIZED

public static final ResponseStatus.Status NOTAUTHORIZED
Failed because the callee is not authorized

OUTOFRANGE

public static final ResponseStatus.Status OUTOFRANGE
Failed due to out of range

CANTFINDOBJECT

public static final ResponseStatus.Status CANTFINDOBJECT
Failed because the requested resource cant be found

ALREADYEXISTS

public static final ResponseStatus.Status ALREADYEXISTS
Failed because it already exists

TIMEOUT

public static final ResponseStatus.Status TIMEOUT
Failed due to timeout

PORTLOCKED

public static final ResponseStatus.Status PORTLOCKED
Failed due to lockout

Method Detail

values

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

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

valueOf

public static ResponseStatus.Status 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