Serializablepublic class OnshapeException extends Exception
| Constructor | Description |
|---|---|
OnshapeException(int statusCode,
String message) |
|
OnshapeException(String message) |
|
OnshapeException(String message,
Throwable cause) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getStatusCode() |
Returns the status code of the HTTP error that caused this exception, or
0 if it is not caused by an HTTP error.
|
boolean |
isHTTPError() |
Returns true if this, or the initial exception thrown that caused this,
is due to an HTTP error and therefore has an HTTP status code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OnshapeException(int statusCode,
String message)
public OnshapeException(String message)
public boolean isHTTPError()
public int getStatusCode()
Copyright © 2021. All rights reserved.