public class TryCatchDirective
extends org.apache.velocity.runtime.directive.Directive
#try()
...
#end
## At this stage $exception contains the exception if any has been thrown.
## It can be tested like this:
#if ("$!exception" != '')
## An exception has been thrown
#end
Constructor and Description |
---|
TryCatchDirective() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getType() |
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node) |
public String getName()
getName
in class org.apache.velocity.runtime.directive.Directive
public int getType()
getType
in class org.apache.velocity.runtime.directive.Directive
public boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws IOException, org.apache.velocity.exception.ResourceNotFoundException, org.apache.velocity.exception.ParseErrorException, org.apache.velocity.exception.MethodInvocationException
render
in class org.apache.velocity.runtime.directive.Directive
IOException
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
Copyright © 2004–2019 XWiki. All rights reserved.