All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oracle.nosql.driver.NoSQLException Maven / Gradle / Ivy

There is a newer version: 5.4.16
Show newest version
/*-
 * Copyright (c) 2011, 2020 Oracle and/or its affiliates.  All rights reserved.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 *  https://oss.oracle.com/licenses/upl/
 */

package oracle.nosql.driver;

/**
 * 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 {@link IllegalArgumentException} directly.
 */
public class NoSQLException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * @hidden
     * @param msg the message
     */
    public /*protected*/ NoSQLException(String msg) {
        super(msg);
    }

    /**
     * @hidden
     *
     * @param msg the message
     * @param cause the cause
     */
    public /*protected*/ NoSQLException(String msg, Throwable cause) {
        super(msg, cause);
    }

    /**
     * Returns whether this exception can be retried with a reasonable
     * expectation that it may succeed. Instances of {@link RetryableException}
     * will return true for this method.
     *
     * @return true if this exception can be retried
     */
    public boolean okToRetry() {
        return false;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy