6.6.8.1.1.4. QuasardbException

public class QuasardbException extends Exception

Quasardb exceptions.

Author:© quasardb - 2014

6.6.8.1.1.4.1. Constructors

6.6.8.1.1.4.1.1. QuasardbException

protected QuasardbException()

Default constructor

6.6.8.1.1.4.1.2. QuasardbException

protected QuasardbException(String message)

Custom Quasardb message exception

Parameters:
  • message – the specific message related to the exception

6.6.8.1.1.4.1.3. QuasardbException

protected QuasardbException(String code, String message)

Custom Quasardb message exception

Parameters:
  • message – the specific message related to the exception

6.6.8.1.1.4.1.4. QuasardbException

protected QuasardbException(Throwable cause)

Build a QuasardbException using a thrown exception

Parameters:
  • cause – the exception to handle

6.6.8.1.1.4.1.5. QuasardbException

protected QuasardbException(String code, String message, Throwable cause)

Build a QuasardbException from a thrown exception and a custom message

Parameters:
  • message – the custom message of exception
  • cause – the exception to handle

6.6.8.1.1.4.1.6. QuasardbException

protected QuasardbException(String message, Throwable cause)

Build a QuasardbException from a thrown exception and a custom message

Parameters:
  • message – the custom message of exception
  • cause – the exception to handle

6.6.8.1.1.4.1.7. QuasardbException

protected QuasardbException(qdb_error_t jniError)

Handle all JNI errors by providing a custom QuasardbException

Parameters:
  • jniError – the JNI error to handle

6.6.8.1.1.4.1.8. QuasardbException

protected QuasardbException(String message, qdb_error_t jniError)

Handle all JNI errors with a custom message by providing a custom QuasardbException

Parameters:
  • jniError – the JNI error to handle

6.6.8.1.1.4.2. Methods

6.6.8.1.1.4.2.1. getCode

public String getCode()

Get error code of Exception

Returns:error code

6.6.8.1.1.4.2.2. getMessage

public String getMessage()

6.6.8.1.1.4.2.3. toString

public String toString()