RSE
Release 3.2

org.eclipse.rse.subsystems.files.core.subsystems
Class RemoteFileCodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileCodeException
All Implemented Interfaces:
Serializable

public class RemoteFileCodeException
extends Exception

This exception class should be used to return exception codes to clients. Codes can be either integers or strings, or both may be used at the same time for better subclassing of similar errors that occur due to slightly different reasons.

See Also:
Serialized Form

Constructor Summary
RemoteFileCodeException()
          Constructor for RemoteFileCodeException
RemoteFileCodeException(int code)
          Constructor for RemoteFileCodeException
RemoteFileCodeException(int code, String codeString)
          Constructor for RemoteFileCodeException
RemoteFileCodeException(String codeString)
          Constructor for RemoteFileCodeException
 
Method Summary
 int getErrorCode()
          Get the error code
 String getErrorCodeString()
          Get the error code string
 void setErrorCode(int code)
          Set the error code
 void setErrorCodeString(String codeString)
          Set the error code string
 
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

RemoteFileCodeException

public RemoteFileCodeException()
Constructor for RemoteFileCodeException


RemoteFileCodeException

public RemoteFileCodeException(int code)
Constructor for RemoteFileCodeException


RemoteFileCodeException

public RemoteFileCodeException(String codeString)
Constructor for RemoteFileCodeException


RemoteFileCodeException

public RemoteFileCodeException(int code,
                               String codeString)
Constructor for RemoteFileCodeException

Method Detail

setErrorCode

public void setErrorCode(int code)
Set the error code

Parameters:
the - error code

getErrorCode

public int getErrorCode()
Get the error code

Returns:
the error code that was set

setErrorCodeString

public void setErrorCodeString(String codeString)
Set the error code string


getErrorCodeString

public String getErrorCodeString()
Get the error code string


RSE
Release 3.2

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