public class

NetworkException

extends ContentException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.neomades.content.ContentException
           ↳ com.neomades.content.network.NetworkException
Known Direct Subclasses

Class Overview

Indicates that there was a network error when performing a query.

Summary

Public Constructors
NetworkException(ContentQuery query)
Creates a network error for a query.
NetworkException(ContentQuery query, NetworkResponse response)
Creates a network error for a query with response.
NetworkException(ContentQuery query, NetworkResponse response, String message)
Creates a network error for a query with response.
Public Methods
NetworkResponse getNetworkResponse()
ContentQuery getQuery()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NetworkException (ContentQuery query)

Creates a network error for a query.

public NetworkException (ContentQuery query, NetworkResponse response)

Creates a network error for a query with response.

public NetworkException (ContentQuery query, NetworkResponse response, String message)

Creates a network error for a query with response.

Public Methods

public NetworkResponse getNetworkResponse ()

Returns
  • the associated response if there is one or null

public ContentQuery getQuery ()

Returns
  • the original query