public class _ErrorDescriptionBuilder extends Object
Constructor and Description |
---|
_ErrorDescriptionBuilder(Object[] descriptionParts) |
_ErrorDescriptionBuilder(String description) |
Modifier and Type | Method and Description |
---|---|
_ErrorDescriptionBuilder |
blame(Expression blamedExpr) |
_ErrorDescriptionBuilder |
showBlamer(boolean showBlamer) |
_ErrorDescriptionBuilder |
template(Template template)
Needed for description parts that look like an FTL tag to be converted, if there's no
blamed . |
_ErrorDescriptionBuilder |
tip(Object[] tip) |
_ErrorDescriptionBuilder |
tip(String tip) |
_ErrorDescriptionBuilder |
tips(Object[] tips) |
String |
toString() |
static String |
toString(Object partObj)
A twist on Java's toString that generates more appropriate results for generating error messages.
|
String |
toString(TemplateElement parentElement,
boolean showTips) |
static String |
tryToString(Object partObj) |
public _ErrorDescriptionBuilder(String description)
public _ErrorDescriptionBuilder(Object[] descriptionParts)
descriptionParts
- These will be concatenated to a single String
in toString()
.
String
array items that look like FTL tag (must start with "<"
and end with ">"
)
will be converted to the actual template syntax if blamed
or template
was set.public String toString(TemplateElement parentElement, boolean showTips)
public static String toString(Object partObj)
public _ErrorDescriptionBuilder template(Template template)
blamed
.public _ErrorDescriptionBuilder blame(Expression blamedExpr)
public _ErrorDescriptionBuilder showBlamer(boolean showBlamer)
public _ErrorDescriptionBuilder tip(String tip)
public _ErrorDescriptionBuilder tip(Object[] tip)
public _ErrorDescriptionBuilder tips(Object[] tips)
Copyright © 2016. All Rights Reserved.