public class MWHttpException
extends java.io.IOException
MWHttpClient
. Since
MWHttpClient
uses HTTP to communicate with the server, certain server side failures result in an HTTP
response status of 4XX or 5XX. These failures are reported to the client in the form of an instance of
MWHttpException
Constructor and Description |
---|
MWHttpException(int responseCode,
java.lang.String message)
Create
MWHttpException using HTTP response code and HTTP message, associated with a failed
request. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Get detailed message comprising of HTTP response status and response message associated with a failed request.
|
int |
getResponseCode()
Get HTTP response status associated with a failed request.
|
java.lang.String |
getResponseMessage()
Get HTTP response message associated with a failed request.
|
public MWHttpException(int responseCode, java.lang.String message)
MWHttpException
using HTTP response code and HTTP message, associated with a failed
request.responseCode
- HTTP response codemessage
- HTTP response messagepublic int getResponseCode()
public java.lang.String getResponseMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Copyright 2010-2016 The MathWorks, Inc.