public class

RemoteMessageException

extends AudioBoxException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ fm.audiobox.core.exceptions.AudioBoxException
           ↳ fm.audiobox.core.exceptions.RemoteMessageException
Known Direct Subclasses

Class Overview

This exception is the parent exception for:

It is used for those exception risen by responses given by the service that bring some information on what gone wrong.

Summary

[Expand]
Inherited Fields
From class fm.audiobox.core.exceptions.AudioBoxException
Public Constructors
RemoteMessageException(HttpResponse response)
Instantiates a new Remote message exception.
RemoteMessageException(Errors errors, int statusCode)
Instantiates a new Remote message exception.
Public Methods
static String errorsToString(Errors errors)
Transforms error mapping into strings.
int getErrorCode()
Gets error code (typically the HTTP STATUS).
Errors getErrors()
Gets the errors mapping.
String getMessage()
String toString()
Transforms error mapping into strings.
[Expand]
Inherited Methods
From class fm.audiobox.core.exceptions.AudioBoxException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public RemoteMessageException (HttpResponse response)

Instantiates a new Remote message exception.

Parameters
response the response

public RemoteMessageException (Errors errors, int statusCode)

Instantiates a new Remote message exception.

Parameters
errors the errors
statusCode the status code

Public Methods

public static String errorsToString (Errors errors)

Transforms error mapping into strings.

Parameters
errors the errors mapping
Returns
  • the string

public int getErrorCode ()

Gets error code (typically the HTTP STATUS).

Returns
  • the error code

public Errors getErrors ()

Gets the errors mapping.

Returns
  • the errors

public String getMessage ()

public String toString ()

Transforms error mapping into strings.

Returns
  • the string