YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.yxc.YxcException Class Reference

A YXC call failed: the device could not be reached, answered with an HTTP error status, sent something that is not a JSON answer, or answered with a response_code other than 0. More...

Inheritance diagram for de.yaacc.yxc.YxcException:
Inheritance graph
Collaboration diagram for de.yaacc.yxc.YxcException:
Collaboration graph

Public Member Functions

String getCall ()
 
int getResponseCode ()
 
int getHttpStatus ()
 

Static Public Attributes

static final int NONE = -1
 Value of getResponseCode() and getHttpStatus() when there is none.
 

Detailed Description

A YXC call failed: the device could not be reached, answered with an HTTP error status, sent something that is not a JSON answer, or answered with a response_code other than 0.

Names the call (path without query) and carries the code or status when there is one. The open-source libraries never look at either; yaacc does.

Member Function Documentation

◆ getCall()

String de.yaacc.yxc.YxcException.getCall ( )
Returns
the call, for example dist/setServerInfo

◆ getHttpStatus()

int de.yaacc.yxc.YxcException.getHttpStatus ( )
Returns
the HTTP status, NONE if the failure is not one

◆ getResponseCode()

int de.yaacc.yxc.YxcException.getResponseCode ( )
Returns
the response_code of the answer, NONE if the failure is not one

The documentation for this class was generated from the following file: