Class ParseFailureException

    • Constructor Detail

      • ParseFailureException

        public ParseFailureException​(FailureItem item)
        Returns an exception wrapping the failure item.

        The failure item should have a reason of 'Parsing'.

        Parameters:
        item - the failure item
      • ParseFailureException

        public ParseFailureException​(String messageTemplate,
                                     Object... messageArgs)
        Returns an exception from a message.

        The message is produced using a template that contains zero to many "{argName}" placeholders. Each placeholder is replaced by the next available argument. If there are too few arguments, then the message will be left with placeholders. If there are too many arguments, then the excess arguments are appended to the end of the message. No attempt is made to format the arguments. See Messages.formatWithAttributes(String, Object...) for more details.

        Parameters:
        messageTemplate - a message explaining the failure, not empty, uses "{argName}" for inserting messageArgs
        messageArgs - the arguments for the message
      • ParseFailureException

        public ParseFailureException​(Throwable cause,
                                     String messageTemplate,
                                     Object... messageArgs)
        Returns an exception from a cause and message.

        The message is produced using a template that contains zero to many "{argName}" placeholders. Each placeholder is replaced by the next available argument. If there are too few arguments, then the message will be left with placeholders. If there are too many arguments, then the excess arguments are appended to the end of the message. No attempt is made to format the arguments. See Messages.formatWithAttributes(String, Object...) for more details.

        Parameters:
        cause - the cause
        messageTemplate - a message explaining the failure, not empty, uses "{argName}" for inserting messageArgs
        messageArgs - the arguments for the message