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