RSE
Release 1.0

org.eclipse.rse.services.clientserver.messages
Class SystemMessageException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.eclipse.rse.services.clientserver.messages.SystemMessageException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RemoteFileException

public class SystemMessageException
extends Exception

Encapsulates a system message

See Also:
Serialized Form

Constructor Summary
protected SystemMessageException(String msg)
          Constructor
  SystemMessageException(SystemMessage msg)
          Constructor
 
Method Summary
 SystemMessage getSystemMessage()
           
 boolean hasLongID(String longMessageID)
          Tests if the SystemMessage encapsulated by this exception has a long id equal to the argument.
 void setSystemMessage(SystemMessage msg)
          Set the SystemMessage being wrapped
 
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

SystemMessageException

protected SystemMessageException(String msg)
Constructor

Parameters:
msg - - a message to wrap.

SystemMessageException

public SystemMessageException(SystemMessage msg)
Constructor

Parameters:
msg - - a system message to wrap.
Method Detail

getSystemMessage

public SystemMessage getSystemMessage()
Returns:
the SystemMessage wrapped by this SystemMessageException

hasLongID

public boolean hasLongID(String longMessageID)
Tests if the SystemMessage encapsulated by this exception has a long id equal to the argument.

Parameters:
longMessageID - the String containing the message id to test.
Returns:
true if the long message id of the message is equal to the supplied message id.

setSystemMessage

public void setSystemMessage(SystemMessage msg)
Set the SystemMessage being wrapped

Parameters:
msg - the SystemMessage wrapped by this SystemMessageException

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.