sky.message
Class Message

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bysky.message.Message
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ErrorMessage, StatusMessage, SuccessMessage

public class Message
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
protected  java.lang.String _message
           
protected  int _source
           
protected  java.lang.String _state
           
protected  int _type
           
static int DATABASE
          Message produced by database and jdbc exceptions.
static int EMAIL
          Message is produced by JavaMail and JavaMail exceptions.
static int ERROR
          Message type for error condition.
static int INTERNAL
          Message produced by SAF framework.
static int IO
          Messages produced by generaal java.io exceptions.
static int SENDMAIL
          Message type for email condition.
static int STATUS
          Message type for status condition.
static int SUCCESS
          Message type for sucess condition
 
Constructor Summary
Message(java.lang.String message, java.lang.String state, int source, int type)
          Constructor
 
Method Summary
 java.lang.String toString()
          Convert message into a string format
 
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
 

Field Detail

INTERNAL

public static final int INTERNAL
Message produced by SAF framework.

See Also:
Constant Field Values

DATABASE

public static final int DATABASE
Message produced by database and jdbc exceptions.

See Also:
Constant Field Values

EMAIL

public static final int EMAIL
Message is produced by JavaMail and JavaMail exceptions.

See Also:
Constant Field Values

IO

public static final int IO
Messages produced by generaal java.io exceptions.

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Message type for sucess condition

See Also:
Constant Field Values

STATUS

public static final int STATUS
Message type for status condition.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Message type for error condition.

See Also:
Constant Field Values

SENDMAIL

public static final int SENDMAIL
Message type for email condition.

See Also:
Constant Field Values

_message

protected java.lang.String _message

_state

protected java.lang.String _state

_source

protected int _source

_type

protected int _type
Constructor Detail

Message

public Message(java.lang.String message,
               java.lang.String state,
               int source,
               int type)
Constructor

Parameters:
message - Actual text of message.
state - Any extra message information.
source - Where did this message come from.
type - What type of message is this.
Method Detail

toString

public java.lang.String toString()
Convert message into a string format

Returns:
String representation of this message.