gishur.core
Class ListException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gishur.core.ListException
All Implemented Interfaces:
java.io.Serializable

public class ListException
extends java.lang.RuntimeException

Exception thrown by classes based on BasicList (like SimpleList, {Stack or Queue).

Version:
1.1
Author:
Thomas Wolf
See Also:
Serialized Form

Field Summary
static int EMPTY_LIST
          List is empty
 int errorcode
          Errorcode
static int ILLEGAL_ACCESS
          Illegal ListAccess
static int ILLEGAL_OBJECT_FORMAT
          Object has illegal format
static int INSERTION_ERROR
          Error while inserting elements
static int NO_SUCH_ELEMENT
          No such element found in list
 java.lang.Object param
          Element, that produced the error
static int UNKNOWN_ERROR
          Unknown error.
 
Constructor Summary
ListException(int errorcode)
          Constructor.
ListException(int errorcode, java.lang.Object param)
          Constructor.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR
Unknown error.

EMPTY_LIST

public static final int EMPTY_LIST
List is empty

NO_SUCH_ELEMENT

public static final int NO_SUCH_ELEMENT
No such element found in list

ILLEGAL_ACCESS

public static final int ILLEGAL_ACCESS
Illegal ListAccess

ILLEGAL_OBJECT_FORMAT

public static final int ILLEGAL_OBJECT_FORMAT
Object has illegal format

INSERTION_ERROR

public static final int INSERTION_ERROR
Error while inserting elements

param

public java.lang.Object param
Element, that produced the error

errorcode

public int errorcode
Errorcode
Constructor Detail

ListException

public ListException(int errorcode,
                     java.lang.Object param)
Constructor.
Parameters:
errorcode - error code
param - Object that produced the error

ListException

public ListException(int errorcode)
Constructor.
Parameters:
errorcode - error code