Diamond Control Suite 3.0

diamondedge.util
Class Err

java.lang.Object
  extended by diamondedge.util.Err

public class Err
extends Object


Method Summary
static void clear()
          Clears all property settings of the Err object
static String getDescription()
          Returns a descriptive string associated with the last error set in this thread.
static RuntimeError getError()
          Get the current exception object cast as a RuntimeError.
static void printStackTrace()
           
static void raise(int Number, String Source, String Description)
           
static void raise(int Number, String Source, String Description, String HelpFile, int HelpContext)
          Generates a run-time error
static void set(Exception e)
          Set the current error.
static void set(Exception e, String clsOrFnName)
          Set the current error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getError

public static RuntimeError getError()
Get the current exception object cast as a RuntimeError. This is the last exception set in this thread.

See Also:
set(java.lang.Exception)

set

public static void set(Exception e)
Set the current error. No stack trace is print out. Use this version instead of the one below once you have written an error handler which fully handles the error.


set

public static void set(Exception e,
                       String clsOrFnName)
Set the current error

Parameters:
e - error to store
clsOrFnName - is a string which causes a stack trace to be printed out up to the line where this string is found. If no stack trace is desired then remove the argument.

getDescription

public static String getDescription()
Returns a descriptive string associated with the last error set in this thread.


raise

public static void raise(int Number,
                         String Source,
                         String Description,
                         String HelpFile,
                         int HelpContext)
                  throws RuntimeError
Generates a run-time error

Throws:
RuntimeError

raise

public static void raise(int Number,
                         String Source,
                         String Description)
                  throws RuntimeError
Throws:
RuntimeError

clear

public static void clear()
Clears all property settings of the Err object


printStackTrace

public static void printStackTrace()

Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.