- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.WicketRuntimeException
-
- org.apache.wicket.markup.MarkupException
-
- All Implemented Interfaces:
Serializable
public final class MarkupException extends WicketRuntimeException
Runtime exception that is thrown when markup parsing fails.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MarkupException(String message)
ConstructorMarkupException(Markup markup, String message, Throwable cause)
Construct.MarkupException(MarkupStream markupStream, String message)
MarkupException(MarkupStream markupStream, String message, Throwable cause)
MarkupException(org.apache.wicket.util.resource.IResourceStream resource, String message)
MarkupException(org.apache.wicket.util.resource.IResourceStream resource, String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkupStream
getMarkupStream()
void
setMarkupStream(MarkupStream markupStream)
Set the markup stream which caused the exceptionString
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
MarkupException
public MarkupException(String message)
Constructor- Parameters:
message
- The problem description
-
MarkupException
public MarkupException(org.apache.wicket.util.resource.IResourceStream resource, String message)
- Parameters:
resource
- The markup resource where this exception occurredmessage
- The message
-
MarkupException
public MarkupException(org.apache.wicket.util.resource.IResourceStream resource, String message, Throwable cause)
- Parameters:
resource
- The markup where this exception occurredmessage
- The messagecause
- The causing exception
-
MarkupException
public MarkupException(MarkupStream markupStream, String message)
- Parameters:
markupStream
- The markup stream where this exception occurredmessage
- The message
-
MarkupException
public MarkupException(MarkupStream markupStream, String message, Throwable cause)
- Parameters:
markupStream
- The markup stream where this exception occurredmessage
- The messagecause
- The causing exception
-
-
Method Detail
-
getMarkupStream
public MarkupStream getMarkupStream()
- Returns:
- Returns the MarkupStream.
-
setMarkupStream
public void setMarkupStream(MarkupStream markupStream)
Set the markup stream which caused the exception- Parameters:
markupStream
-
-
-