APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming.directory

public Class SchemaViolationException

extends NamingException
Class Inheritance
Imports
javax.naming.NamingException

This exception is thrown when a method in some ways violates the schema. An example of schema violation is modifying attributes of an object that violates the object's schema definition. Another example is renaming or moving an object to a part of the namespace that violates the namespace's schema definition.

Synchronization and serialization issues that apply to NamingException apply directly here.

Authors
Rosanna Lee, Scott Seligman
Since
1.3
See Also
javax.naming.Context#bind, DirContext#bind, javax.naming.Context#rebind, DirContext#rebind, DirContext#createSubcontext, javax.naming.Context#createSubcontext, DirContext#modifyAttributes

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
SchemaViolationException()

Constructs a new instance of SchemaViolationException.

public
SchemaViolationException(String
Detail about this exception. Can be null.
explanation
)

Constructs a new instance of SchemaViolationException using the explanation supplied.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

SchemaViolationExceptionback to summary
public SchemaViolationException()

Constructs a new instance of SchemaViolationException. All fields are set to null.

SchemaViolationExceptionback to summary
public SchemaViolationException(String explanation)

Constructs a new instance of SchemaViolationException using the explanation supplied. All other fields are set to null.

Parameters
explanation:String

Detail about this exception. Can be null.

See Also
java.lang.Throwable#getMessage