public class ApplinkException extends Exception
Modifier and Type | Field and Description |
---|---|
private String |
httpBody |
private Integer |
httpStatusCode |
private String |
httpStatusText |
private com.atlassian.sal.api.net.Request.MethodType |
method |
private String |
url |
Constructor and Description |
---|
ApplinkException() |
ApplinkException(com.atlassian.sal.api.net.Request.MethodType method,
String url,
String message) |
ApplinkException(com.atlassian.sal.api.net.Request.MethodType method,
String url,
String message,
Integer httpStatusCode,
String httpStatusText,
String httpBody) |
ApplinkException(String message) |
ApplinkException(String message,
Throwable cause) |
ApplinkException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getDetailedMessage()
On a CredentialsException, getDetailedMessage() returns the URLs inline, when you can't send them along.
|
String |
getHttpBody() |
Integer |
getHttpStatusCode() |
String |
getHttpStatusText() |
com.atlassian.sal.api.net.Request.MethodType |
getMethod() |
String |
getUrl() |
void |
setHttpBody(String httpBody) |
void |
setHttpStatusCode(Integer httpStatusCode) |
void |
setHttpStatusText(String httpStatusText) |
void |
writeToResponse(BiConsumer<String,Object> response)
Write the details of the exception into the JSON response
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private Integer httpStatusCode
private String httpStatusText
private String httpBody
private com.atlassian.sal.api.net.Request.MethodType method
private String url
public ApplinkException()
public ApplinkException(com.atlassian.sal.api.net.Request.MethodType method, String url, String message)
public ApplinkException(String message)
public ApplinkException(Throwable cause)
public String getDetailedMessage()
public void writeToResponse(BiConsumer<String,Object> response)
public Integer getHttpStatusCode()
public void setHttpStatusCode(Integer httpStatusCode)
public String getHttpStatusText()
public void setHttpStatusText(String httpStatusText)
public String getHttpBody()
public void setHttpBody(String httpBody)
public com.atlassian.sal.api.net.Request.MethodType getMethod()
public String getUrl()
Copyright © 2020 Play SQL. All rights reserved.