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)
ArangoDBException(Throwable cause)
ArangoDBException(Throwable cause, long requestId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Integer
getErrorNum()
String
getException()
Long
getRequestId()
Integer
getResponseCode()
static ArangoDBException
wrap(Throwable t)
-
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
public ArangoDBException(Throwable cause)
-
ArangoDBException
public ArangoDBException(Throwable cause, long requestId)
-
-
Method Detail
-
wrap
public static ArangoDBException wrap(Throwable t)
-
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
-
-