source: ether_megapoli/trunk/service/interface/com/ether/ServiceException.java @ 286

Last change on this file since 286 was 286, checked in by vmipsl, 13 years ago

clean

File size: 1.0 KB
Line 
1package com.ether;
2
3
4/**
5 * @author vmipsl
6 * @date 28 jan 2011
7 */
8@SuppressWarnings("serial")
9public class ServiceException
10        extends FormattedException
11{
12    public ServiceException( final Enum<? extends Code> code, final Throwable cause, final Object... parameters )
13    {
14        this( code, cause.getMessage(), cause, parameters );
15    }
16
17    protected ServiceException( final Enum<? extends Code> code, final String message, final Throwable throwable, final Object... parameters )
18    {
19        super( formatThrowable( code, message, throwable ), throwable, parameters );
20    }
21
22    public static enum ServiceCode
23            implements Code
24    {
25        UNKNOWN,
26        PERSISTENCE,
27        SERVICE_PROBLEM,
28        PLATEFORM_NOT_FOUND,
29        PLATEFORM_IS_NULL,
30        PARAMETER_NOT_FOUND,
31        PARAMETER_IS_NULL,
32        VALUE_NOT_FOUND,
33        PANEL_MODEL_NOT_FOUND,
34        LEGEND_LAYER_NOT_FOUND,
35        DATE_NOT_FOUND,
36        USER_NOT_FOUND,
37        WAITING_USER_NOT_FOUND,
38        NO_DATA
39    }
40}
Note: See TracBrowser for help on using the repository browser.