net.stepniak.picheese.error.client
Enum ClientErrorType

java.lang.Object
  extended by java.lang.Enum<ClientErrorType>
      extended by net.stepniak.picheese.error.client.ClientErrorType
All Implemented Interfaces:
Serializable, Comparable<ClientErrorType>

public enum ClientErrorType
extends Enum<ClientErrorType>


Enum Constant Summary
AUTH_FAILED
           
AUTH_USER_REQUIRED
           
CONNECTION_FAILED
           
INVALID_DESCRIPTION_PARAM
           
INVALID_EMAIL_PARAM
           
INVALID_PHOTO_PARAM
           
INVALID_PHOTO_URL_PARAM
           
INVALID_TITLE_PARAM
           
INVALID_USERNAME_PARAM
           
LENGTH_DESCRIPTION_PARAM
           
LENGTH_EMAIL_PARAM
           
LENGTH_TITLE_PARAM
           
LENGTH_USERNAME_PARAM
           
MAINTENANCE_BREAK
           
MISSING_DESCRIPTION_PARAM
           
MISSING_EMAIL_PARAM
           
MISSING_PHOTO_PARAM
           
MISSING_PHOTO_URL_PARAM
           
MISSING_REQUIRED_PARAMS
           
MISSING_TITLE_PARAM
           
MISSING_USERNAME_PARAM
           
UPDATE_APPLICATION
           
UPLOAD_FAILED
           
 
Method Summary
 String getMsg()
           
static ClientErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ClientErrorType[] 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

MAINTENANCE_BREAK

public static final ClientErrorType MAINTENANCE_BREAK

UPDATE_APPLICATION

public static final ClientErrorType UPDATE_APPLICATION

CONNECTION_FAILED

public static final ClientErrorType CONNECTION_FAILED

AUTH_FAILED

public static final ClientErrorType AUTH_FAILED

AUTH_USER_REQUIRED

public static final ClientErrorType AUTH_USER_REQUIRED

UPLOAD_FAILED

public static final ClientErrorType UPLOAD_FAILED

MISSING_REQUIRED_PARAMS

public static final ClientErrorType MISSING_REQUIRED_PARAMS

MISSING_EMAIL_PARAM

public static final ClientErrorType MISSING_EMAIL_PARAM

INVALID_EMAIL_PARAM

public static final ClientErrorType INVALID_EMAIL_PARAM

LENGTH_EMAIL_PARAM

public static final ClientErrorType LENGTH_EMAIL_PARAM

MISSING_USERNAME_PARAM

public static final ClientErrorType MISSING_USERNAME_PARAM

INVALID_USERNAME_PARAM

public static final ClientErrorType INVALID_USERNAME_PARAM

LENGTH_USERNAME_PARAM

public static final ClientErrorType LENGTH_USERNAME_PARAM

MISSING_PHOTO_PARAM

public static final ClientErrorType MISSING_PHOTO_PARAM

INVALID_PHOTO_PARAM

public static final ClientErrorType INVALID_PHOTO_PARAM

MISSING_PHOTO_URL_PARAM

public static final ClientErrorType MISSING_PHOTO_URL_PARAM

INVALID_PHOTO_URL_PARAM

public static final ClientErrorType INVALID_PHOTO_URL_PARAM

MISSING_DESCRIPTION_PARAM

public static final ClientErrorType MISSING_DESCRIPTION_PARAM

INVALID_DESCRIPTION_PARAM

public static final ClientErrorType INVALID_DESCRIPTION_PARAM

LENGTH_DESCRIPTION_PARAM

public static final ClientErrorType LENGTH_DESCRIPTION_PARAM

MISSING_TITLE_PARAM

public static final ClientErrorType MISSING_TITLE_PARAM

INVALID_TITLE_PARAM

public static final ClientErrorType INVALID_TITLE_PARAM

LENGTH_TITLE_PARAM

public static final ClientErrorType LENGTH_TITLE_PARAM
Method Detail

values

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

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

valueOf

public static ClientErrorType 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

getMsg

public String getMsg()


Copyright © 2013. All Rights Reserved.