com.cedarspring.tvm
Class ErrorSupport

java.lang.Object
  |
  +--com.cedarspring.tvm.ErrorSupport
All Implemented Interfaces:
java.io.Serializable

public class ErrorSupport
extends java.lang.Object
implements java.io.Serializable

Version:
1.2.2 15-May-2003
Author:
Cedar Spring Software, Inc.
See Also:
Serialized Form

Field Summary
private  java.util.Vector errorListeners
           
private  java.util.Locale locale
           
private  java.lang.String message
           
(package private) static long serialVersionUID
           
private  java.lang.Object source
           
 
Constructor Summary
ErrorSupport(java.lang.Object newSource)
           
 
Method Summary
 void addErrorListener(ErrorListener listener)
          Add a new error listener
(package private)  void clearMessage()
          Clear the error message
(package private)  void fireErrorEvent(java.lang.String errorNumber)
          Notify all registered objects that an error occurred
(package private)  java.util.Locale getLocale()
          Get Locale
(package private)  java.lang.String getMessage()
          Return the last error message
private  void readObject(java.io.ObjectInputStream in)
           
 void removeErrorListener(ErrorListener listener)
          Remove an error listener
(package private)  void setLocale(java.util.Locale locale)
          Set Locale
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorListeners

private transient java.util.Vector errorListeners

source

private java.lang.Object source

message

private java.lang.String message

locale

private java.util.Locale locale

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ErrorSupport

public ErrorSupport(java.lang.Object newSource)
Method Detail

addErrorListener

public void addErrorListener(ErrorListener listener)
Add a new error listener


removeErrorListener

public void removeErrorListener(ErrorListener listener)
Remove an error listener


fireErrorEvent

void fireErrorEvent(java.lang.String errorNumber)
Notify all registered objects that an error occurred


getMessage

java.lang.String getMessage()
Return the last error message


clearMessage

void clearMessage()
Clear the error message


setLocale

void setLocale(java.util.Locale locale)
Set Locale


getLocale

java.util.Locale getLocale()
Get Locale


writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.lang.ClassNotFoundException,
                        java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException