source: ether_2012/web/src/com/ether/WebException.java @ 319

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

Import du projet Ether pour le nouveau look 2012

File size: 1.0 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        super(code);
12        }
13
14        public WebException(final Enum<? extends Code> code, final Throwable cause, final Object... parameters) {
15        this(code, cause.getMessage(), cause, parameters);
16    }
17
18    protected WebException(final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters) {
19        super(prefix(code, message), cause, parameters);
20    }
21
22        public WebException(final Throwable cause) {
23                super(cause);
24        }
25
26        public WebException( final Enum<? extends Code> code, final String string) {
27                super(code, string);
28        }
29
30        public static enum WebCode implements Code
31    {
32                UNKNOWN, 
33                PERSISTENCE, 
34                SERVICE_PROBLEM,
35                PLATEFORME_ID_NOT_FOUND,
36                IO_EXCEPTION_ERROR_TO_GET_OUTPUTSTREAM,
37                ERROR_UNSUPPORTED_UTF8_ENCODING,
38                ERROR_NO_REQUEST_HANDLING_METHOD,
39                ERROR_NUMBER_OF_PARAM_TYPES_NOT_EQUAL_TO_PARAM_ANNOTATIONS,
40    }
41}
Note: See TracBrowser for help on using the repository browser.