Class ErrorDescriptor

java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.ErrorDescriptor
All Implemented Interfaces:
Descriptor

public class ErrorDescriptor extends AbstractDescriptor
Descriptor for errors/exceptions (any kind of Throwable).
Author:
hohwille
  • Field Details

  • Constructor Details

    • ErrorDescriptor

      public ErrorDescriptor()
  • Method Details

    • getErrorName

      public String getErrorName()
      Returns:
      the errorNameRegex
    • setErrorName

      public void setErrorName(String errorNameRegex)
      Parameters:
      errorNameRegex - is the errorNameRegex to set
    • getJsonExample

      public String getJsonExample()
      Returns:
      the jsonExample
    • setJsonExample

      public void setJsonExample(String jsonExample)
      Parameters:
      jsonExample - is the jsonExample to set
    • getXmlExample

      public String getXmlExample()
      Returns:
      the xmlExample
    • setXmlExample

      public void setXmlExample(String xmlExample)
      Parameters:
      xmlExample - is the xmlExample to set
    • getStatusCode

      public String getStatusCode()
      Returns:
      the statusCode
    • setStatusCode

      public void setStatusCode(String statusCode)
      Parameters:
      statusCode - is the statusCode to set
    • getComment

      public String getComment()
      Returns:
      the comment to use if no more specific comment is available (esp. in case of ErrorDescriptor.Match.always).
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - is the comment to set
    • getErrorNamePattern

      public Pattern getErrorNamePattern()
      Returns:
      the errorNamePattern
    • getMatch

      public ErrorDescriptor.Match getMatch()
      Returns:
      the match
    • setMatch

      public void setMatch(ErrorDescriptor.Match match)
      Parameters:
      match - is the match to set
    • getErrorClass

      public Class<?> getErrorClass()
      Returns:
      the errorClass
    • setErrorClass

      public void setErrorClass(Class<?> errorClass)
      Parameters:
      errorClass - is the errorClass to set
    • toString

      public String toString()
      Overrides:
      toString in class Object