com.sap.workspaces

Class WorkspacesRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.workspaces.WorkspacesRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LinkException, MemberListException, ModuleLifecycleException

public class WorkspacesRuntimeException
extends RuntimeException

Base exception of enterprise workspaces

See Also:
Serialized Form

Field Summary
static String INTERNAL_ERROR
           
static String TIMEOUT
           
 
Constructor Summary
WorkspacesRuntimeException(String message, Throwable cause)
          Constructs a new workspace runtime exception with the specified message and cause.
 
Method Summary
 String getErrorCode()
          Returns an error code that specifies the reason of failure
 void setErrorCode(String errorCode)
          Sets the error code that specifies the reason of failure
 
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
 

Field Detail

INTERNAL_ERROR

public static final String INTERNAL_ERROR
See Also:
Constant Field Values

TIMEOUT

public static final String TIMEOUT
See Also:
Constant Field Values
Constructor Detail

WorkspacesRuntimeException

public WorkspacesRuntimeException(String message,
                                  Throwable cause)
Constructs a new workspace runtime exception with the specified message and cause.

Parameters:
message - the detailed message, which is saved for later retrieval by the #getMessage() method
cause - the cause, which is saved for later retrieval by the #getCause() method. A null value indicates that the cause is nonexistent or unknown.
Method Detail

getErrorCode

public String getErrorCode()
Returns an error code that specifies the reason of failure

Returns:
A code that specifies the reason of failure

setErrorCode

public void setErrorCode(String errorCode)
Sets the error code that specifies the reason of failure

Parameters:
errorCode - code that specifies the reason of failure


Copyright 2011 SAP AG Complete Copyright Notice