KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > junit > response > ErrorResponse


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under LGPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portal.junit.response;
12
13 import org.jboss.portal.junit.ServerResponse;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public class ErrorResponse extends ServerResponse
20 {
21    private String JavaDoc message;
22
23    public ErrorResponse(String JavaDoc message)
24    {
25       if (message == null)
26       {
27          throw new IllegalArgumentException JavaDoc("no message provided");
28       }
29       this.message = message;
30    }
31
32    public String JavaDoc getMessage()
33    {
34       return message;
35    }
36 }
37
Popular Tags