Class GraphDbException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.graphdbapi.driver.v1.exceptions.GraphDbException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientException
,DatabaseException
,FoundException
,NotFoundException
,TypeErrorException
,ValueFormatException
public abstract class GraphDbException extends RuntimeException
This is the base class for all exceptions caused as part of communication with the remote GraphDb server.- Since:
- 1.0 所有因与远程GraphDb服务器通信引起的异常的基类。, 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GraphDbException(String message)
GraphDbException(String code, String message)
GraphDbException(String code, String message, Throwable cause)
GraphDbException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Access the status code for this exception.static GraphDbException
discardCauseAndGetNewExcpetion(GraphDbException acl, String message, Throwable cause, Throwable[] suppressed)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
GraphDbException
public GraphDbException(String message)
-
-
Method Detail
-
discardCauseAndGetNewExcpetion
public static GraphDbException discardCauseAndGetNewExcpetion(GraphDbException acl, String message, Throwable cause, Throwable[] suppressed) throws Exception
- Throws:
Exception
-
code
public String code()
Access the status code for this exception. The GraphDb manual can provide further details on the available codes and their meanings.- Returns:
- textual code, such as "GraphDb.ClientError.Procedure.ProcedureNotFound" 访问此异常的状态代码。 GraphDb手册可以提供有关可用代码及其含义的更多详细信息。
-
-