public class SchemaNotAllowedException extends FaultException
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
.
Modifier and Type | Method and Description |
---|---|
String |
getSchemaName()
Returns the full name of the schema that is not allowed.
|
getFaultClassName, getRemoteStackTrace, toString, wasLoggedRemotely
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public String getSchemaName()
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.