
oracle.kv.UnauthorizedException Maven / Gradle / Ivy
Show all versions of oracle-nosql-server Show documentation
/*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
/**
* This exception is thrown from methods where an authenticated user is
* attempting to perform an operation for which they are not authorized. An
* application that receives this exception typically should not retry the
* operation.
*
* Note that in this release, this exception should not occur through legitimate
* use of the KVStore API. Future release may introduce additional
* authorization capabilities that may cause this exception to be encountered.
*
* @since 3.0
* @hiddensee {@link #writeFastExternal FastExternalizable format}
*/
public class UnauthorizedException extends KVSecurityException {
private static final long serialVersionUID = 1L;
/**
* For internal use only.
* @hidden
*/
public UnauthorizedException(String msg) {
super(msg);
}
/**
* For internal use only.
* @hidden
*/
public UnauthorizedException(Throwable cause) {
super(cause);
}
/**
* For internal use only.
* @hidden
*/
public UnauthorizedException(String msg, Throwable cause) {
super(msg, cause);
}
/**
* Creates an instance from the input stream.
*
* @hidden For internal use only
*/
public UnauthorizedException(DataInput in, short serialVersion)
throws IOException {
super(in, serialVersion);
}
/**
* Writes the fields of this object to the output stream. Format:
*
* - ({@link KVSecurityException}) {@code super}
*
*
* @hidden For internal use only
*/
@Override
public void writeFastExternal(DataOutput out, short serialVersion)
throws IOException {
super.writeFastExternal(out, serialVersion);
}
}