com.ibm.jtopenlite
Class MessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.ibm.jtopenlite.MessageException
All Implemented Interfaces:
Serializable

public class MessageException
extends IOException

Represents an IOException that includes one or more Messages as part of its exception text.

See Also:
Serialized Form

Constructor Summary
MessageException(Message[] messages)
          Constructs a MessageException with no preamble.
MessageException(String preamble, Message[] messages)
          Constructs a MessageException with the specified preamble and messages.
 
Method Summary
 Message[] getMessages()
          Returns the array of Messages.
 String getPreamble()
          Returns the preamble, which may be null.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageException

public MessageException(String preamble,
                        Message[] messages)
Constructs a MessageException with the specified preamble and messages.


MessageException

public MessageException(Message[] messages)
Constructs a MessageException with no preamble.

Method Detail

getPreamble

public String getPreamble()
Returns the preamble, which may be null.


getMessages

public Message[] getMessages()
Returns the array of Messages.