org.jboss.seam.core
Class Exceptions

java.lang.Object
  extended by org.jboss.seam.core.Exceptions

@Scope(value=APPLICATION)
@Intercept(value=NEVER)
@Install(precedence=0)
@Name(value="org.jboss.seam.core.exceptions")
public class Exceptions
extends Object

Holds metadata for pages defined in pages.xml, including page actions and page descriptions.

Author:
Gavin King

Nested Class Summary
static class Exceptions.DebugPageHandler
           
static class Exceptions.ErrorHandler
           
static interface Exceptions.ExceptionHandler
           
static class Exceptions.RedirectHandler
           
static class Exceptions.RenderHandler
           
 
Constructor Summary
Exceptions()
           
 
Method Summary
protected static void addFacesMessage(Exception e, String message)
           
protected static void error(int code, String message)
           
protected static String getDisplayMessage(Exception e, String message)
           
 Object handle(Exception e)
           
 void initialize()
           
static Exceptions instance()
           
protected static void redirect(String viewId)
           
protected static void render(String viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exceptions

public Exceptions()
Method Detail

handle

public Object handle(Exception e)
              throws Exception
Throws:
Exception

initialize

@Create
public void initialize()
                throws Exception
Throws:
Exception

getDisplayMessage

protected static String getDisplayMessage(Exception e,
                                          String message)

addFacesMessage

protected static void addFacesMessage(Exception e,
                                      String message)

error

protected static void error(int code,
                            String message)

redirect

protected static void redirect(String viewId)

render

protected static void render(String viewId)

instance

public static Exceptions instance()