source: tapas/common/implementation/com/ether/WebException.java @ 382

Last change on this file since 382 was 382, checked in by vmipsl, 12 years ago

clean

File size: 1.2 KB
Line 
1package com.ether;
2
3/**
4 * @author vmipsl
5 * @date 02 feb 2011
6 */
7public class WebException
8        extends FormattedException
9{
10    public WebException( final Enum<? extends Code> code )
11    {
12        super( code );
13    }
14
15    public WebException( final Enum<? extends Code> code, final Throwable cause, final Object... parameters )
16    {
17        this( code, cause.getMessage(), cause, parameters );
18    }
19
20    protected WebException( final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters )
21    {
22        super( prefix( code, message ), cause, parameters );
23    }
24
25    public WebException( final Throwable cause )
26    {
27        super( cause );
28    }
29
30    public WebException( final Enum<? extends Code> code, final String string )
31    {
32        super( code, string );
33    }
34
35    public static enum WebCode
36            implements Code
37    {
38        UNKNOWN,
39        PERSISTENCE,
40        SERVICE_PROBLEM,
41        IO_EXCEPTION_ERROR_TO_GET_OUTPUTSTREAM,
42        ERROR_UNSUPPORTED_UTF8_ENCODING,
43        ERROR_NO_REQUEST_HANDLING_METHOD,
44        ERROR_NUMBER_OF_PARAM_TYPES_NOT_EQUAL_TO_PARAM_ANNOTATIONS,
45        PLATEFORM_NOT_FOUND,
46        PARAMETER_NOT_FOUND
47
48    }
49}
Note: See TracBrowser for help on using the repository browser.