final class ErrorInfo extends Product with Equals with Serializable

Two-level model of error information. The summary should explain what is wrong with the request or response *without* directly repeating anything present in the message itself (in order to not open holes for XSS attacks), while the detail can contain additional information from any source (even the request itself).

Source
ErrorInfo.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorInfo
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ErrorInfo(summary: String = "", detail: String = "", errorHeaderName: String = "")

Value Members

  1. def canEqual(that: Any): Boolean
    Definition Classes
    ErrorInfo → Equals
  2. val detail: String
  3. def equals(that: Any): Boolean
    Definition Classes
    ErrorInfo → Equals → AnyRef → Any
  4. val errorHeaderName: String
  5. def format(withDetail: Boolean): String
  6. def formatPretty: String
  7. def productArity: Int
    Definition Classes
    ErrorInfo → Product
  8. def productElement(n: Int): Any
    Definition Classes
    ErrorInfo → Product
  9. def productElementName(n: Int): String
    Definition Classes
    Product
  10. def productElementNames: Iterator[String]
    Definition Classes
    Product
  11. def productIterator: Iterator[Any]
    Definition Classes
    Product
  12. def productPrefix: String
    Definition Classes
    Product
  13. val summary: String
  14. def toString(): String
    Definition Classes
    ErrorInfo → AnyRef → Any
  15. def withErrorHeaderName(headerName: String): ErrorInfo
  16. def withFallbackSummary(fallbackSummary: String): ErrorInfo
  17. def withSummary(newSummary: String): ErrorInfo
  18. def withSummaryPrepended(prefix: String): ErrorInfo