Class SCServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.serviceconnector.api.SCServiceException
All Implemented Interfaces:
Serializable

public class SCServiceException extends Exception
The Class SCServiceException. Used to notify errors on SC service level.
Author:
JTraber
See Also:
  • Constructor Details

    • SCServiceException

      public SCServiceException(String message, Exception exception)
      Instantiates a new SC service exception.
      Parameters:
      message - the message
      exception - the cause
    • SCServiceException

      public SCServiceException(String message)
      Instantiates a new SC service exception.
      Parameters:
      message - the message
  • Method Details

    • getAppErrorCode

      public int getAppErrorCode()
      Gets the application error code.
      Returns:
      the application error code
    • setAppErrorCode

      public void setAppErrorCode(Integer appErrorCode)
      Sets the application error code.
      Parameters:
      appErrorCode - the new application error code
    • getAppErrorText

      public String getAppErrorText()
      Gets the application error text.
      Returns:
      the application error text
    • setAppErrorText

      public void setAppErrorText(String appErrorText)
      Sets the application error text.
      Parameters:
      appErrorText - the new application error text
    • setSCErrorCode

      public void setSCErrorCode(Integer scErrorCode)
      Sets the SC error code.
      Parameters:
      scErrorCode - the new SC error code
    • setSCErrorText

      public void setSCErrorText(String scErrorText)
      Sets the sC error text.
      Parameters:
      scErrorText - the new sC error text
    • getSCErrorCode

      public int getSCErrorCode()
      Gets the SC error code.
      Returns:
      the SC error code
    • getSCErrorText

      public String getSCErrorText()
      Gets the SC error text.
      Returns:
      the SC error text
    • toString

      public String toString()
      Overrides:
      toString in class Throwable