org.jboss.solder.exception.control
Class ExceptionResponse

java.lang.Object
  extended by org.jboss.solder.exception.control.ExceptionResponse

public class ExceptionResponse
extends Object

Base class for setting up messages and responses for exceptions. This class is mutable.


Constructor Summary
ExceptionResponse()
          Basic constructor, needed to make the class a bean, please don't use.
ExceptionResponse(Class<? extends Throwable> forType, String message)
          Basic constructor setting all the internal state
 
Method Summary
 Class<? extends Throwable> getForType()
           
 String getMessage()
           
 void setForType(Class<? extends Throwable> forType)
           
 void setMessage(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionResponse

public ExceptionResponse()
Basic constructor, needed to make the class a bean, please don't use.


ExceptionResponse

public ExceptionResponse(Class<? extends Throwable> forType,
                         String message)
Basic constructor setting all the internal state

Parameters:
forType - Exception type for this instance.
message - Message for the exception.
Method Detail

getForType

public Class<? extends Throwable> getForType()

setForType

public void setForType(Class<? extends Throwable> forType)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)


Copyright © 2011 Seam Framework. All Rights Reserved.