public final class ErrorInfo
extends java.lang.Object
implements scala.Product, scala.Equals, java.io.Serializable
Constructor and Description |
---|
ErrorInfo(java.lang.String summary,
java.lang.String detail)
INTERNAL API
|
ErrorInfo(java.lang.String summary,
java.lang.String detail,
java.lang.String errorHeaderName) |
Modifier and Type | Method and Description |
---|---|
static ErrorInfo |
apply(java.lang.String summary,
java.lang.String detail)
INTERNAL API
|
boolean |
canEqual(java.lang.Object that) |
ErrorInfo |
copy(java.lang.String summary,
java.lang.String detail)
INTERNAL API
|
java.lang.String |
detail() |
boolean |
equals(java.lang.Object that) |
java.lang.String |
errorHeaderName() |
java.lang.String |
format(boolean withDetail) |
java.lang.String |
formatPretty() |
static ErrorInfo |
fromCompoundString(java.lang.String message)
Allows constructing an
ErrorInfo from a single string. |
int |
productArity() |
java.lang.Object |
productElement(int n) |
java.lang.String |
summary() |
java.lang.String |
toString() |
static scala.Option<scala.Tuple2<java.lang.String,java.lang.String>> |
unapply(ErrorInfo arg) |
ErrorInfo |
withErrorHeaderName(java.lang.String headerName) |
ErrorInfo |
withFallbackSummary(java.lang.String fallbackSummary) |
ErrorInfo |
withSummary(java.lang.String newSummary) |
ErrorInfo |
withSummaryPrepended(java.lang.String prefix) |
public ErrorInfo(java.lang.String summary, java.lang.String detail, java.lang.String errorHeaderName)
public ErrorInfo(java.lang.String summary, java.lang.String detail)
public static ErrorInfo apply(java.lang.String summary, java.lang.String detail)
public static scala.Option<scala.Tuple2<java.lang.String,java.lang.String>> unapply(ErrorInfo arg)
public static ErrorInfo fromCompoundString(java.lang.String message)
ErrorInfo
from a single string.
Used for example when catching exceptions generated by the header value parser, which doesn't provide
summary/details information but structures its exception messages accordingly.message
- (undocumented)public java.lang.String summary()
public java.lang.String detail()
public java.lang.String errorHeaderName()
public ErrorInfo withSummary(java.lang.String newSummary)
public ErrorInfo withSummaryPrepended(java.lang.String prefix)
public ErrorInfo withErrorHeaderName(java.lang.String headerName)
public ErrorInfo withFallbackSummary(java.lang.String fallbackSummary)
public java.lang.String formatPretty()
public java.lang.String format(boolean withDetail)
public ErrorInfo copy(java.lang.String summary, java.lang.String detail)
public boolean canEqual(java.lang.Object that)
canEqual
in interface scala.Equals
public boolean equals(java.lang.Object that)
equals
in interface scala.Equals
equals
in class java.lang.Object
public java.lang.Object productElement(int n)
productElement
in interface scala.Product
public int productArity()
productArity
in interface scala.Product
public java.lang.String toString()
toString
in class java.lang.Object