Class MarkException.MarkDisallowed

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    MarkException

    public static class MarkException.MarkDisallowed
    extends MarkException.ConstraintViolation
    Indicates that the new mark cannot be added because its use has been restricted for some reason. As an example, a text node that has a code mark cannot also use a formatted-text mark like strong.
    See Also:
    Serialized Form
    • Constructor Detail

      • MarkDisallowed

        public MarkDisallowed​(String reason,
                              Mark mark)
      • MarkDisallowed

        public MarkDisallowed​(String reason,
                              String markType)
    • Method Detail

      • reason

        public String reason()
        Returns:
        the reason why the use of the mark has been restricted
      • markType

        public String markType()
        Returns:
        the type of mark that could not be added