com.jrockit.memleak.mlp
Enum MlpErr

java.lang.Object
  extended by java.lang.Enum<MlpErr>
      extended by com.jrockit.memleak.mlp.MlpErr
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MlpErr>

public enum MlpErr
extends java.lang.Enum<MlpErr>

Error codes for MLP.

Author:
mpersson

Enum Constant Summary
END_OF_PACKET
          Server expected more data but the packet ended.
GENERIC
          This is what older servers sent.
ID_DISCARDED
          There is a weak handle, but it's been cleared.
ID_NOT_ARRAY
          Used for both array classes and instances.
ID_NOT_CLASS
           
ID_UNUSED
          Unused or invalid ID, but invalid IDs may not be reported.
INDEX_OUT_OF_BOUNDS
          Typically for array access
NO_INPUT
          When a request takes a variable number of objects/classes, none was provided.
NONE
           
OPERATION_FAILED
          The actual operation failed.
OUT_OF_MEMORY
           
PROCESSING_FAILED
          Some processing of the input failed.
REQ_UNSUPPORTED
           
TIMED_OUT
          No result could be found within the given time.
TOO_COMPLEX
          No result could be found within given complexity limits.
 
Method Summary
static MlpErr get(int errCode)
           
static MlpErr valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MlpErr[] 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

NONE

public static final MlpErr NONE

GENERIC

public static final MlpErr GENERIC
This is what older servers sent.


OUT_OF_MEMORY

public static final MlpErr OUT_OF_MEMORY

REQ_UNSUPPORTED

public static final MlpErr REQ_UNSUPPORTED

END_OF_PACKET

public static final MlpErr END_OF_PACKET
Server expected more data but the packet ended.


NO_INPUT

public static final MlpErr NO_INPUT
When a request takes a variable number of objects/classes, none was provided.


ID_UNUSED

public static final MlpErr ID_UNUSED
Unused or invalid ID, but invalid IDs may not be reported.


ID_DISCARDED

public static final MlpErr ID_DISCARDED
There is a weak handle, but it's been cleared.


ID_NOT_CLASS

public static final MlpErr ID_NOT_CLASS

ID_NOT_ARRAY

public static final MlpErr ID_NOT_ARRAY
Used for both array classes and instances.


INDEX_OUT_OF_BOUNDS

public static final MlpErr INDEX_OUT_OF_BOUNDS
Typically for array access


PROCESSING_FAILED

public static final MlpErr PROCESSING_FAILED
Some processing of the input failed.


OPERATION_FAILED

public static final MlpErr OPERATION_FAILED
The actual operation failed.


TIMED_OUT

public static final MlpErr TIMED_OUT
No result could be found within the given time.


TOO_COMPLEX

public static final MlpErr TOO_COMPLEX
No result could be found within given complexity limits.

Method Detail

values

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

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

valueOf

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

get

public static MlpErr get(int errCode)
Parameters:
errCode -
Returns:
the MlpErr with the given ordinal, or GENERIC.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.