final class ErrorInfo extends Product with Serializable 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
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorInfo
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ErrorInfo(summary: String = "", detail: String = "", errorHeaderName: String = "")
Value Members
-
def
canEqual(that: Any): Boolean
- Definition Classes
- ErrorInfo → Equals
- val detail: String
-
def
equals(that: Any): Boolean
- Definition Classes
- ErrorInfo → Equals → AnyRef → Any
- val errorHeaderName: String
- def format(withDetail: Boolean): String
- def formatPretty: String
-
def
productArity: Int
- Definition Classes
- ErrorInfo → Product
-
def
productElement(n: Int): Any
- Definition Classes
- ErrorInfo → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
- val summary: String
- def withErrorHeaderName(headerName: String): ErrorInfo
- def withFallbackSummary(fallbackSummary: String): ErrorInfo
- def withSummary(newSummary: String): ErrorInfo
- def withSummaryPrepended(prefix: String): ErrorInfo