sky.message
Class ErrorMessage

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bysky.message.Message
              extended bysky.message.ErrorMessage
All Implemented Interfaces:
java.io.Serializable

public class ErrorMessage
extends Message

See Also:
Serialized Form

Field Summary
 
Fields inherited from class sky.message.Message
_message, _source, _state, _type, DATABASE, EMAIL, ERROR, INTERNAL, IO, SENDMAIL, STATUS, SUCCESS
 
Constructor Summary
ErrorMessage(java.awt.AWTException awte)
          Create an ErrorMessage using AWTException.
ErrorMessage(java.io.IOException ioe)
          Create an ErrorMessage using IOException.
ErrorMessage(javax.mail.MessagingException me)
          Create an ErrorMessage using MessagingException.
ErrorMessage(java.sql.SQLException se)
          Create an ErrorMessage using SQLException thrown by JDBC.
ErrorMessage(java.lang.String message)
          Create an ErrorMessage with default source as Message.INTERNAL.
 
Methods inherited from class sky.message.Message
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorMessage

public ErrorMessage(java.lang.String message)
Create an ErrorMessage with default source as Message.INTERNAL.

Parameters:
message - Actual text of error condition.

ErrorMessage

public ErrorMessage(java.sql.SQLException se)
Create an ErrorMessage using SQLException thrown by JDBC. The source of the message created using this constructor is Message.DATABASE.

Parameters:
se - Input SQLException object.

ErrorMessage

public ErrorMessage(java.io.IOException ioe)
Create an ErrorMessage using IOException. The source of the message created by using this constructor is Message.IO.

Parameters:
ioe - Input IOException object.

ErrorMessage

public ErrorMessage(javax.mail.MessagingException me)
Create an ErrorMessage using MessagingException. The source of the message created by using this constructor is Message.EMAIL.

Parameters:
me - Input MessagingException object.

ErrorMessage

public ErrorMessage(java.awt.AWTException awte)
Create an ErrorMessage using AWTException. The source of the message created by using this constructor is Message.INTERNAL.

Parameters:
awte - Input AWTException object.