public static class JenkinsClient.HttpStatusException extends RuntimeException
Similar classes exist in different framework, but such frameworks are not used here and introducing an otherwise useless dependency is not desirable.
javax.xml.ws.http.HTTPException might have been a good fit, but it does not allow providing a description of the context, which is required here.
| Constructor and Description |
|---|
HttpStatusException(String message,
int statusCode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpStatusException(String message, int statusCode)
message - Message.statusCode - Status code.Copyright © 2015–2016 AZYVA INC.. All rights reserved.