public class ResponseValidationException extends RuntimeException
Constructor and Description |
---|
ResponseValidationException(String reason)
Creates a new ResponseValidationException instance.
|
ResponseValidationException(String op,
String path,
Integer statusCode,
String location,
String reason)
Creates a new ResponseValidationException instance.
|
ResponseValidationException(String op,
String path,
Integer statusCode,
String location,
String reason,
Throwable cause)
Creates a new ResponseValidationException instance.
|
ResponseValidationException(String op,
String path,
String reason)
Creates a new ResponseValidationException instance.
|
ResponseValidationException(String reason,
Throwable cause)
Creates a new ResponseValidationException instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocation()
Returns the location of the failure in the invalid response.
|
String |
getOperation()
Returns the operation of the API request returning an invalid response.
|
String |
getPath()
Returns the path of the API request returning an invalid response.
|
Integer |
getStatusCode()
Returns the status code of the API request returning an invalid response.
|
static String |
messageFor(String op,
String path,
Integer statusCode,
String location,
String message)
Returns a message for an invalid API response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResponseValidationException(String reason)
public ResponseValidationException(String reason, Throwable cause)
public ResponseValidationException(String op, String path, String reason)
public ResponseValidationException(String op, String path, Integer statusCode, String location, String reason)
public String getOperation()
public String getPath()
public String getLocation()
public Integer getStatusCode()
Copyright © 2024 The Cornutum Project. All rights reserved.