Класс SchemaViolationException

Все реализованные интерфейсы:
Serializable
public class SchemaViolationException
extends NamingException

Исключение выбрасывается, когда метод каким-то образом нарушает схему. Примером нарушения схемы является изменение атрибутов объекта, нарушающих определение схемы объекта. Другим примером является переименование или перемещение объекта в часть пространства имен, нарушающая определение схемы пространства имен.

Проблемы с синхронизацией и сериализацией, применимые к NamingException, применяются непосредственно здесь.

С:
1.3
См. также:
Context.bind(javax.naming.Name, java.lang.Object), DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes), Context.rebind(javax.naming.Name, java.lang.Object), DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes), DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes), Context.createSubcontext(javax.naming.Name), DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes), Сериализованная форма

Поля

Поля, объявленные в классе javax.naming.NamingException

remainingName, resolvedName, resolvedObj, rootException

Конструкторы

Конструктор Описание
SchemaViolationException()

Создает новый экземпляр SchemaViolationException.

SchemaViolationException​(String explanation)

Создает новый экземпляр SchemaViolationException с предоставленным объяснением.

Методы

Методы, объявленные в классе javax.naming.NamingException

appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString

Методы, объявленные в классе java.lang.Throwable

addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace

Методы, объявленные в классе java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Конструкторы

SchemaViolationException

public SchemaViolationException()

Создает новый экземпляр SchemaViolationException. Все поля устанавливаются в null.

SchemaViolationException

public SchemaViolationException(String explanation)

Создает новый экземпляр SchemaViolationException с предоставленным объяснением. Все остальные поля устанавливаются в null.

Параметры:
explanation - Подробности об этом исключении. Может быть null.
См. также:
Throwable.getMessage()

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.naming/javax/naming/directory/SchemaViolationException.html

Spec-Zone .ru
спецификации, руководства, описания, API