source: ether_2012/service/interface/com/ether/ServiceException.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: 714 bytes
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        this(code, cause.getMessage(), cause, parameters);
14    }
15
16    protected ServiceException(final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters) {
17        super(prefix(code, message), cause, parameters);
18    }
19
20    public static enum ServiceCode implements Code
21    {
22        UNKNOWN, 
23        PERSISTENCE, 
24        SERVICE_PROBLEM,
25        PLATEFORM_NOT_FOUND,
26        PARAMETER_NOT_FOUND,
27    }
28}
Note: See TracBrowser for help on using the repository browser.