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, WorkspaceSettingException

public class WorkspacesRuntimeException
extends RuntimeException

Base exception of enterprise workspaces

See Also:
Serialized Form

Field Summary
static String INTERNAL_ERROR
          Internal error
static String SEARCH_CONDITION_TOO_WIDE
          The search condition is too wide
static String TIMEOUT
          Timeout occurred
 
Constructor Summary
WorkspacesRuntimeException(String message, Throwable cause)
          Constructs a new workspace runtime exception with the specified message and cause.
WorkspacesRuntimeException(String message, Throwable cause, String errorCode)
          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
Internal error

See Also:
Constant Field Values

TIMEOUT

public static final String TIMEOUT
Timeout occurred

See Also:
Constant Field Values

SEARCH_CONDITION_TOO_WIDE

public static final String SEARCH_CONDITION_TOO_WIDE
The search condition is too wide

Since:
1.1 SP02
See Also:
Constant Field Values
Constructor Detail

WorkspacesRuntimeException

public WorkspacesRuntimeException(String message,
                                  Throwable cause,
                                  String errorCode)
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.
errorCode - The code that specifies the reason of failure
Since:
1.1 SP02

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 2013 SAP AG Complete Copyright Notice