Class ApiError


  • public class ApiError
    extends Object
    Response object to communicate the reason an API error occoured.
    • Constructor Detail

      • ApiError

        public ApiError​(Exception exception)
        Takes the message from an Exception an sets it as the reason for the API failure.
        Parameters:
        exception - The exception to take as reason.
    • Method Detail

      • getReason

        public String getReason()
        Returns:
        The reason why the request failed.