Last change
on this file since 419 was
419,
checked in by rboipsl, 12 years ago
|
creation listes dans form
creation class Observatory
|
File size:
674 bytes
|
Line | |
---|
1 | package com.ether; |
---|
2 | |
---|
3 | |
---|
4 | /** |
---|
5 | * @author vmipsl |
---|
6 | * @date 28 jan 2011 |
---|
7 | */ |
---|
8 | @SuppressWarnings("serial") |
---|
9 | public 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 | |
---|
23 | PERSISTENCE, |
---|
24 | OBSERVATORY_NOT_FOUND, |
---|
25 | USER_NOT_FOUND, |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.