KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > test > xmlrpc > ServerErrors


1 /* ****************************************************************************
2  * ServerErrors.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.test.xmlrpc;
11
12 public class ServerErrors
13 {
14     public ServerErrors()
15
16
17     {}
18
19
20     public ServerErrors(java.util.Map JavaDoc arg)
21     {
22         // nothing here
23
}
24
25     public void makeException()
26     {
27         throw new RuntimeException JavaDoc("Something bad happened");
28     }
29
30     public void invokeMe(Object JavaDoc arg)
31     {}
32
33     public String JavaDoc forceTimeout(String JavaDoc val) throws InterruptedException JavaDoc
34     {
35         Thread.sleep(Long.parseLong(val));
36         return "got timeout?";
37     }
38
39     void noAccess() {}
40 };
Popular Tags