se.kmr.scam.client.chain
Class CommandChainException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byse.kmr.scam.client.chain.CommandChainException
All Implemented Interfaces:
Serializable

public class CommandChainException
extends Exception

Represents an exception in the CommandChain process.

Version:
$Revision: 1.4 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 26 augusti 2002

Field Summary
static int CHAIN
          Error code for errors that occures executing the chain
protected  int iCode
          Current error code
static int INTERNAL
          Error code for errors occured during initializing the objects
static int PARSE
          Error code for a errors that occures during the process of parsing the command chain definition
static int SERVER
          Error code for errors that occures on the server
static int UNKNOWN
          Error code for a unknown error
 
Constructor Summary
CommandChainException()
          Constructor for a unknown CommandChainException object
CommandChainException(int code)
          Constructor for the CommandChainException object
CommandChainException(String message, int code)
          Constructor for the CommandChainException object
CommandChainException(Throwable e, int code)
          Constructor for wrapping a Throwable
 
Method Summary
 int getErrorCode()
          Gets the errorCode attribute of the CommandChainException object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Error code for a unknown error

See Also:
Constant Field Values

PARSE

public static final int PARSE
Error code for a errors that occures during the process of parsing the command chain definition

See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
Error code for errors occured during initializing the objects

See Also:
Constant Field Values

SERVER

public static final int SERVER
Error code for errors that occures on the server

See Also:
Constant Field Values

CHAIN

public static final int CHAIN
Error code for errors that occures executing the chain

See Also:
Constant Field Values

iCode

protected int iCode
Current error code

Constructor Detail

CommandChainException

public CommandChainException()
Constructor for a unknown CommandChainException object


CommandChainException

public CommandChainException(int code)
Constructor for the CommandChainException object

Parameters:
code - The error code

CommandChainException

public CommandChainException(String message,
                             int code)
Constructor for the CommandChainException object

Parameters:
message - A description of the exception
code - The error code

CommandChainException

public CommandChainException(Throwable e,
                             int code)
Constructor for wrapping a Throwable

Parameters:
e - wraps this exception
code - The error code
Method Detail

getErrorCode

public int getErrorCode()
Gets the errorCode attribute of the CommandChainException object

Returns:
The errorCode value


Copyright © 2003 SCAM. All Rights Reserved.