public class RenderException extends RuntimeException implements Renderable
| Modifier and Type | Field and Description |
|---|---|
String |
closingTag |
Exception |
exception |
String |
expectedTag |
boolean |
isEmptyStack |
boolean |
isNullTag |
static String |
KEY_PAGECONTEXT |
| Constructor and Description |
|---|
RenderException() |
| Modifier and Type | Method and Description |
|---|---|
static RenderException |
caught(Exception ex)
Return a new RenderException for the situation that an unkown problem was detected when rendering a component.
|
static RenderException |
emptyStack()
Return a new RenderException for the situation that a component is trying to close an open tag when there are no open tags to close.
|
static RenderException |
nullTag()
Return a new RenderException for the situation that a different tag is being close than expected.
|
void |
renderOn(HtmlCanvas html)
Render the receiver on a html to provide debugging information about the exception.
|
void |
renderStackTraceOn(HtmlCanvas html)
Render information about the exception (if any)
|
String |
toString() |
static RenderException |
unexpectedTag(String expected,
String actual)
Return a new RenderException for the situation that a different tag is being close than expected.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final String KEY_PAGECONTEXT
public boolean isNullTag
public boolean isEmptyStack
public String expectedTag
public String closingTag
public Exception exception
public static RenderException nullTag()
expected - , what should have been the close tagactual - , what the program is trying to closepublic static RenderException unexpectedTag(String expected, String actual)
expected - , what should have been the close tagactual - , what the program is trying to closepublic static RenderException emptyStack()
public static RenderException caught(Exception ex)
ex - public void renderOn(HtmlCanvas html) throws IOException
renderOn in interface RenderableIOExceptionpublic void renderStackTraceOn(HtmlCanvas html) throws IOException
html - IOExceptionCopyright © 2010–2018. All rights reserved.