Package com.bybit.api.client.exception
Class BybitApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.bybit.api.client.exception.BybitApiException
-
- All Implemented Interfaces:
Serializable
public class BybitApiException extends RuntimeException
An exception which can occur while invoking methods of the Bybit API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BybitApiException()Instantiates a new Bybit api exception.BybitApiException(BybitApiError error)Instantiates a new Bybit api exception.BybitApiException(String message)Instantiates a new Bybit api exception.BybitApiException(String message, Throwable cause)Instantiates a new Bybit api exception.BybitApiException(Throwable cause)Instantiates a new Bybit api exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BybitApiException
public BybitApiException(BybitApiError error)
Instantiates a new Bybit api exception.- Parameters:
error- an error response object
-
BybitApiException
public BybitApiException()
Instantiates a new Bybit api exception.
-
BybitApiException
public BybitApiException(String message)
Instantiates a new Bybit api exception.- Parameters:
message- the message
-
BybitApiException
public BybitApiException(Throwable cause)
Instantiates a new Bybit api exception.- Parameters:
cause- the cause
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-