|
Oracle NoSQL Database version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException oracle.kv.FaultException oracle.kv.avro.SchemaNotAllowedException
public class SchemaNotAllowedException
Thrown when a schema is passed to a binding method that is not allowed for the binding.
The schemas allowed for a particular binding are those specified when the
binding is created using one of the AvroCatalog
getXxxBinding
methods.
This exception may indicate a programming error if the application uses a
value with the wrong binding. In that case, when this exception is thrown
the client should treat it as if it were an IllegalArgumentException
and report an error at a higher level.
However, an application may also use this exception to determine whether a binding supports the value's schema or not. In that case, depending on the nature of the application, when this exception is thrown the client may wish to
See GenericAvroBinding
and JsonAvroBinding
for an example of
handling SchemaNotAllowedException
.
Method Summary | |
---|---|
String |
getSchemaName()
Returns the full name of the schema that is not allowed. |
Methods inherited from class oracle.kv.FaultException |
---|
getFaultClassName, getRemoteStackTrace, toString, wasLoggedRemotely |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getSchemaName()
|
Oracle NoSQL Database version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |