net.sf.tomp.xtcl.command
Class Err

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.Err
All Implemented Interfaces:
Command

public class Err
extends AbstractCommand

Generates an Error with specified return (error) code

Author:
tomp

Field Summary
protected  int err
          error code
 
Constructor Summary
Err()
           
 
Method Summary
 int execute(Context context)
          Generates an Error with specified return (error) code
 void setError(int r)
          sets the error code
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

err

protected int err
error code

Constructor Detail

Err

public Err()
Method Detail

setError

public void setError(int r)
sets the error code

Parameters:
r -

execute

public int execute(Context context)
            throws java.lang.Exception
Generates an Error with specified return (error) code

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context -
Returns:
the error code
Throws:
java.lang.Exception - only if I/O error occurs when reporting the result to user.

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.