1. /*
  2. * @(#)SchemaViolationException.java 1.7 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.naming.directory;
  8. import javax.naming.NamingException;
  9. /**
  10. * This exception is thrown when a method
  11. * in some ways violates the schema. An example of schema violation
  12. * is modifying attributes of an object that violates the object's
  13. * schema definition. Another example is renaming or moving an object
  14. * to a part of the namespace that violates the namespace's
  15. * schema definition.
  16. * <p>
  17. * Synchronization and serialization issues that apply to NamingException
  18. * apply directly here.
  19. *
  20. * @author Rosanna Lee
  21. * @author Scott Seligman
  22. * @version 1.7 03/12/19
  23. *
  24. * @see javax.naming.Context#bind
  25. * @see DirContext#bind
  26. * @see javax.naming.Context#rebind
  27. * @see DirContext#rebind
  28. * @see DirContext#createSubcontext
  29. * @see javax.naming.Context#createSubcontext
  30. * @see DirContext#modifyAttributes
  31. * @since 1.3
  32. */
  33. public class SchemaViolationException extends NamingException {
  34. /**
  35. * Constructs a new instance of SchemaViolationException.
  36. * All fields are set to null.
  37. */
  38. public SchemaViolationException() {
  39. super();
  40. }
  41. /**
  42. * Constructs a new instance of SchemaViolationException
  43. * using the explanation supplied. All other fields are set to null.
  44. * @param explanation Detail about this exception. Can be null.
  45. * @see java.lang.Throwable#getMessage
  46. */
  47. public SchemaViolationException(String explanation) {
  48. super(explanation);
  49. }
  50. /**
  51. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  52. */
  53. private static final long serialVersionUID = -3041762429525049663L;
  54. }