no.digipost.api.client
Enum DigipostClientException.ErrorType

java.lang.Object
  extended by java.lang.Enum<DigipostClientException.ErrorType>
      extended by no.digipost.api.client.DigipostClientException.ErrorType
All Implemented Interfaces:
Serializable, Comparable<DigipostClientException.ErrorType>
Enclosing class:
DigipostClientException

public static enum DigipostClientException.ErrorType
extends Enum<DigipostClientException.ErrorType>


Enum Constant Summary
DUPLICATE_MESSAGE_ID
           
GENERAL_ERROR
           
INVALID_TRANSACTION
           
MESSAGE_DELIVERED
           
MESSAGE_DOES_NOT_EXIST
           
PROBLEM_WITH_REQUEST
           
RECIPIENT_DOES_NOT_EXIST
           
SERVER_ERROR
           
 
Method Summary
static DigipostClientException.ErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DigipostClientException.ErrorType[] 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

RECIPIENT_DOES_NOT_EXIST

public static final DigipostClientException.ErrorType RECIPIENT_DOES_NOT_EXIST

PROBLEM_WITH_REQUEST

public static final DigipostClientException.ErrorType PROBLEM_WITH_REQUEST

SERVER_ERROR

public static final DigipostClientException.ErrorType SERVER_ERROR

INVALID_TRANSACTION

public static final DigipostClientException.ErrorType INVALID_TRANSACTION

MESSAGE_DOES_NOT_EXIST

public static final DigipostClientException.ErrorType MESSAGE_DOES_NOT_EXIST

DUPLICATE_MESSAGE_ID

public static final DigipostClientException.ErrorType DUPLICATE_MESSAGE_ID

MESSAGE_DELIVERED

public static final DigipostClientException.ErrorType MESSAGE_DELIVERED

GENERAL_ERROR

public static final DigipostClientException.ErrorType GENERAL_ERROR
Method Detail

values

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

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

valueOf

public static DigipostClientException.ErrorType 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


Copyright © 2011 Digipost Open Source. All Rights Reserved.