Venice 0.751beta

nz.org.venice.alert
Class AlertException

java.lang.Object
  extended byjava.lang.Throwable
      extended bynz.org.venice.alert.AlertException
All Implemented Interfaces:
java.io.Serializable

public class AlertException
extends java.lang.Throwable

An exception which is raised when invalid alert data is read. For example, if the value for target price cannot be parsed as a double. Shouldn't happen, but external processes could read/write alerts.

Author:
Mark Hummel
See Also:
Serialized Form

Field Summary
static int INVALID_DATE_FORMAT
           
static int INVALID_EXPRESSION
           
static int INVALID_FIELD
           
static int INVALID_NUMBER_VALUE
           
static int INVALID_SYMBOL
           
static int MISSING_FIELDS
           
 
Constructor Summary
AlertException(int reason)
          Create an Alert exception.
AlertException(int reason, java.lang.String message)
          Create a ChartOutOfBounds exception.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

INVALID_DATE_FORMAT

public static final int INVALID_DATE_FORMAT
See Also:
Constant Field Values

INVALID_NUMBER_VALUE

public static final int INVALID_NUMBER_VALUE
See Also:
Constant Field Values

INVALID_SYMBOL

public static final int INVALID_SYMBOL
See Also:
Constant Field Values

MISSING_FIELDS

public static final int MISSING_FIELDS
See Also:
Constant Field Values

INVALID_EXPRESSION

public static final int INVALID_EXPRESSION
See Also:
Constant Field Values

INVALID_FIELD

public static final int INVALID_FIELD
See Also:
Constant Field Values
Constructor Detail

AlertException

public AlertException(int reason)
Create an Alert exception.

Parameters:
reason - for the exception.

AlertException

public AlertException(int reason,
                      java.lang.String message)
Create a ChartOutOfBounds exception.

Parameters:
reason - for the exception.
message - messages created by the original exception
Method Detail

getMessage

public java.lang.String getMessage()

Venice 0.751beta