Class ClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.davidmoten.odata.client.ClientException
-
- All Implemented Interfaces:
Serializable
public final class ClientException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientException(int statusCode, String message)ClientException(int statusCode, Throwable e)ClientException(String message)ClientException(String message, Throwable e)ClientException(Throwable e)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientExceptionfrom(Throwable e)If e is a ClientException then returns e otherwise returns e wrapped in a ClientException.Optional<Integer>getStatusCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
from
public static ClientException from(Throwable e)
If e is a ClientException then returns e otherwise returns e wrapped in a ClientException.- Parameters:
e- throwable to return as ClientException- Returns:
- client exception
-
-