com.sap.sl.sdk.framework
Class SlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.sl.sdk.framework.SlException
All Implemented Interfaces:
IStatusProvider, java.io.Serializable

public class SlException
extends java.lang.RuntimeException
implements IStatusProvider

This is the base class of Semantic Layer SDK exceptions.

Structured information can be obtained through getStatus(), and error code through IStatus.getCode() . Localized messages can be obtained using IStatus.getMessage(java.util.Locale).

See Also:
Serialized Form

Constructor Summary
SlException(com.sap.tools.commons.status.IStatus status)
          Sets the error status.
SlException(com.sap.tools.commons.status.IStatusProvider statusProvider)
           Not part of the BI Semantic Layer Java SDK API, should not be called.
SlException(java.lang.String message, com.sap.tools.commons.status.IStatus status)
          Sets the error status.
 
Method Summary
 IStatus getStatus()
          Retrieves the error status.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SlException

public SlException(com.sap.tools.commons.status.IStatus status)
Sets the error status.

Not part of the BI Semantic Layer Java SDK API, should not be called.

Parameters:
status - The status
Throws:
java.lang.NullPointerException - if the status is null

SlException

public SlException(java.lang.String message,
                   com.sap.tools.commons.status.IStatus status)
Sets the error status.

Not part of the BI Semantic Layer Java SDK API, should not be called.

Parameters:
message - The error message
status - The status
Throws:
java.lang.NullPointerException - if the status is null

SlException

public SlException(com.sap.tools.commons.status.IStatusProvider statusProvider)

Not part of the BI Semantic Layer Java SDK API, should not be called.

Parameters:
statusProvider - The error message
Throws:
java.lang.NullPointerException - if the statusProvider is null
Method Detail

getStatus

public IStatus getStatus()
Retrieves the error status.

Specified by:
getStatus in interface IStatusProvider
Returns:
An IStatus object


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.