source: tapas/service/interface/com/ether/ServiceException.java @ 409

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

backoffice

File size: 738 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        USER_NOT_FOUND,
28    }
29}
Note: See TracBrowser for help on using the repository browser.