org.mmbase.framework
Class ErrorRenderer

java.lang.Object
  extended by org.mmbase.framework.AbstractRenderer
      extended by org.mmbase.framework.ErrorRenderer
All Implemented Interfaces:
Renderer

public class ErrorRenderer
extends AbstractRenderer

If rendering of a Block fails for some reason this renderer should be used to present the error.

Since:
MMBase-1.9
Version:
$Id: ErrorRenderer.java 43017 2010-07-29 14:34:31Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
static class ErrorRenderer.Error
           
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
protected  ErrorRenderer.Error error
           
protected static int MAX_CAUSES
           
protected  String url
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
ErrorRenderer(Renderer.Type t, Block parent, String u, int status, String m)
           
ErrorRenderer(Renderer.Type t, Block parent, String u, int status, Throwable e)
           
 
Method Summary
 Parameter<?>[] getParameters()
          A renderer may need certain parameters.
 URI getUri()
          An URI which may identify the implementation of this Renderer.
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 String toString()
           
 
Methods inherited from class org.mmbase.framework.AbstractRenderer
decorateIntro, decorateOutro, getBlock, getType, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

error

protected final ErrorRenderer.Error error

url

protected final String url

MAX_CAUSES

protected static int MAX_CAUSES
Constructor Detail

ErrorRenderer

public ErrorRenderer(Renderer.Type t,
                     Block parent,
                     String u,
                     int status,
                     String m)

ErrorRenderer

public ErrorRenderer(Renderer.Type t,
                     Block parent,
                     String u,
                     int status,
                     Throwable e)
Method Detail

getParameters

public Parameter<?>[] getParameters()
Description copied from interface: Renderer
A renderer may need certain parameters. These are added to the block-parameters. This method is called on instantation of the renderer.

Specified by:
getParameters in interface Renderer
Overrides:
getParameters in class AbstractRenderer

render

public void render(Parameters blockParameters,
                   Writer w,
                   RenderHints hints)
            throws FrameworkException
Description copied from interface: Renderer
Renders to a writer. In case of e.g. a JSPView, the parameters must also contain the Http Servlet response and request, besided specific parameters for this component.

Specified by:
render in interface Renderer
Specified by:
render in class AbstractRenderer
Throws:
FrameworkException

toString

public String toString()
Overrides:
toString in class Object

getUri

public URI getUri()
Description copied from interface: Renderer
An URI which may identify the implementation of this Renderer.

Specified by:
getUri in interface Renderer
Overrides:
getUri in class AbstractRenderer


MMBase 2.0-SNAPSHOT - null