Class GenericErrorDetail

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GenericErrorDetail
    extends ErrorDetail<T>
    implements java.io.Serializable
    Generic error message representing a Guice internal error.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ErrorId errorId  
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericErrorDetail​(ErrorId errorId, java.lang.String message, java.util.List<java.lang.Object> sources, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void formatDetail​(java.util.List<ErrorDetail<?>> mergeableErrors, java.util.Formatter formatter)
      Formats the detail of this error message along with other errors that are mergeable with this error.
      protected java.util.Optional<java.lang.String> getErrorIdentifier()
      Returns an optional string identifier for this error.
      protected java.util.Optional<java.lang.String> getLearnMoreLink()
      Returns an optional link to additional documentation about this error to be included in the formatted error message.
      GenericErrorDetail withSources​(java.util.List<java.lang.Object> newSources)
      Returns a new instance of the same ErrorDetail with updated sources.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait