Class SchemaException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoFocusNameSchemaException

public class SchemaException extends CommonException
Error regarding schema. E.g. Object class violation, missing object class, inconsistent schema, etc.
Author:
Radovan Semancik
See Also:
  • Constructor Details

    • SchemaException

      public SchemaException()
    • SchemaException

      public SchemaException(String message, Throwable cause)
    • SchemaException

      public SchemaException(LocalizableMessage userFriendlyMessage, Throwable cause)
    • SchemaException

      public SchemaException(String message, Throwable cause, QName propertyName)
    • SchemaException

      public SchemaException(String message)
    • SchemaException

      public SchemaException(LocalizableMessage userFriendlyMessage)
    • SchemaException

      public SchemaException(String message, QName propertyName)
  • Method Details

    • of

      @Experimental public static SchemaException of(String messageTemplate, Object... arguments)
    • getErrorTypeMessage

      public String getErrorTypeMessage()
      Description copied from class: CommonException
      Returns a human-readable message that describes the type or class of errors that the exception represents. E.g. "Communication error", "Policy violation", etc. TODO: switch return value to a localized message
      Specified by:
      getErrorTypeMessage in class CommonException
    • getPropertyName

      public QName getPropertyName()
    • wrap

      @Experimental public SchemaException wrap(String context)
      Provides additional context information to the exception by creating a wrapping one.