public class

ForbiddenException

extends AudioBoxException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ fm.audiobox.core.exceptions.AudioBoxException
           ↳ fm.audiobox.core.exceptions.ForbiddenException

Class Overview

This exception is thrown when the user tries to access a resource he's not allowed to access, because of ownership or account state.

Its main usage is to handle 402 and 403 HttpStatus messages.

Summary

[Expand]
Inherited Fields
From class fm.audiobox.core.exceptions.AudioBoxException
Public Constructors
ForbiddenException(HttpResponse response)
Instantiates a new Forbidden exception starting from the response.
[Expand]
Inherited Methods
From class fm.audiobox.core.exceptions.AudioBoxException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ForbiddenException (HttpResponse response)

Instantiates a new Forbidden exception starting from the response.

Parameters
response the response