Package oracle.nosql.driver

# Class NoSQLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.nosql.driver.NoSQLException

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `AuthenticationException`, `InvalidAuthorizationException`, `JsonParseException`, `OperationNotSupportedException`, `PrepareQueryException`, `RequestTimeoutException`, `ResourceExistsException`, `ResourceLimitException`, `ResourceNotFoundException`, `RetryableException`, `TableSizeException`, `UnauthorizedException`, `UnsupportedProtocolException`, `UnsupportedQueryVersionException`

public class NoSQLException extends RuntimeException
A base exception for most exceptions thrown by the driver. All of the exceptions defined in this package extend this exception. The driver throws Java exceptions such as `IllegalArgumentException` directly.

See Also:
  - Serialized Form

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `okToRetry()`
  Returns whether this exception can be retried with a reasonable expectation that it may succeed.

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### okToRetry

    public boolean okToRetry()
    Returns whether this exception can be retried with a reasonable expectation that it may succeed. Instances of `RetryableException` will return true for this method.
    Returns:
      true if this exception can be retried