Class ApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthorizationException, PlatformException, ReferenceException, ValidationException

public class ApiException extends RuntimeException
Represents an error response from the Worldline Acquiring platform.
See Also:
  • Constructor Details

  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns:
      The HTTP status code that was returned by the Worldline Acquiring platform.
    • getResponseBody

      public String getResponseBody()
      Returns:
      The raw response body that was returned by the Worldline Acquiring platform.
    • getType

      public String getType()
      Returns:
      The type received from the Worldline Acquiring platform if available.
    • getTitle

      public String getTitle()
      Returns:
      The title received from the Worldline Acquiring platform if available.
    • getStatus

      public Integer getStatus()
      Returns:
      The status received from the Worldline Acquiring platform if available.
    • getDetail

      public String getDetail()
      Returns:
      The detail received from the Worldline Acquiring platform if available.
    • getInstance

      public String getInstance()
      Returns:
      The instance received from the Worldline Acquiring platform if available.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable