Class Failure

java.lang.Object
com.atlassian.validation.Failure
All Implemented Interfaces:
Validator.Result

public final class Failure extends Object implements Validator.Result
A Validator.Result that represents epic validation failure.
Since:
v4.4
  • Constructor Details

    • Failure

      public Failure(String message)
      Creates failure from a given text message, encoding the text message as a whole into html for the html message.
      Parameters:
      message - the failure message in text.
    • Failure

      public Failure(String textError, String htmlError)
      Creates failure from a text message and an html equivalent message.
      Parameters:
      textError - the error to be displayed in plain text output (such as logs).
      htmlError - the error to be displayed in a browser or html email.
  • Method Details