Package com.arangodb
Class ArangoDBException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.arangodb.ArangoDBException
-
- All Implemented Interfaces:
Serializable
public class ArangoDBException extends RuntimeException
- Author:
- Mark Vollmary
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArangoDBException(ErrorEntity errorEntity)ArangoDBException(String message)ArangoDBException(String message, Integer responseCode)ArangoDBException(String message, Throwable cause)Deprecated.useof(String, Throwable)insteadArangoDBException(Throwable cause)Deprecated.useof(java.lang.Throwable)insteadArangoDBException(Throwable cause, long requestId)Deprecated.useof(Throwable, Long)instead
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()IntegergetErrorNum()StringgetException()LonggetRequestId()IntegergetResponseCode()static ArangoDBExceptionof(String message, Throwable t)static ArangoDBExceptionof(Throwable t)static ArangoDBExceptionof(Throwable t, Long requestId)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ArangoDBException
public ArangoDBException(ErrorEntity errorEntity)
-
ArangoDBException
public ArangoDBException(String message)
-
ArangoDBException
@Deprecated public ArangoDBException(Throwable cause)
Deprecated.useof(java.lang.Throwable)instead
-
ArangoDBException
@Deprecated public ArangoDBException(String message, Throwable cause)
Deprecated.useof(String, Throwable)instead
-
ArangoDBException
@Deprecated public ArangoDBException(Throwable cause, long requestId)
Deprecated.useof(Throwable, Long)instead
-
-
Method Detail
-
of
public static ArangoDBException of(Throwable t)
-
of
public static ArangoDBException of(String message, Throwable t)
-
of
public static ArangoDBException of(Throwable t, Long requestId)
-
getErrorMessage
public String getErrorMessage()
- Returns:
- ArangoDB error message
-
getException
public String getException()
- Returns:
- ArangoDB exception
-
getResponseCode
public Integer getResponseCode()
- Returns:
- HTTP response code
-
getErrorNum
public Integer getErrorNum()
- Returns:
- ArangoDB error number
-
getRequestId
public Long getRequestId()
- Returns:
- request id
-
-