com.sap.ecm.api

## Class ServiceException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.sap.ecm.api.ServiceException

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    RepositoryAlreadyExistsException, RepositoryNotEmptyException, RepositoryQuotaExceededException

      public class ServiceException
      extends RuntimeException

  Generic exception encapsulating other root causes.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServiceException(String message)` Constructs a new exception with the given message.
    `ServiceException(String message, Throwable throwable)` Constructs a new exception with the given message and the given root cause.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

    - #### ServiceException

          public ServiceException(String message,
                          Throwable throwable)

      Constructs a new exception with the given message and the given root cause.
      Parameters:
        `message` - The exceptions message.
        `throwable` - The root cause.

    - #### ServiceException

          public ServiceException(String message)

      Constructs a new exception with the given message.
      Parameters:
        `message` - The exceptions message.

Copyright © 2018 SAP. All Rights Reserved.