Line | |
---|
1 | package com.ether; |
---|
2 | |
---|
3 | /** |
---|
4 | * @author vmipsl |
---|
5 | * @date 02 feb 2011 |
---|
6 | */ |
---|
7 | public class EtherException |
---|
8 | extends FormattedException |
---|
9 | { |
---|
10 | public EtherException( final Enum<? extends Code> code ) |
---|
11 | { |
---|
12 | super( code ); |
---|
13 | } |
---|
14 | |
---|
15 | public EtherException( final Enum<? extends Code> code, final Throwable cause, final Object... parameters ) |
---|
16 | { |
---|
17 | this( code, cause.getMessage(), cause, parameters ); |
---|
18 | } |
---|
19 | |
---|
20 | protected EtherException( final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters ) |
---|
21 | { |
---|
22 | super( prefix( code, message ), cause, parameters ); |
---|
23 | } |
---|
24 | |
---|
25 | public EtherException( final Throwable cause ) |
---|
26 | { |
---|
27 | super( cause ); |
---|
28 | } |
---|
29 | |
---|
30 | public EtherException( final Enum<? extends Code> code, final String string ) |
---|
31 | { |
---|
32 | super( code, string ); |
---|
33 | } |
---|
34 | |
---|
35 | public static enum EtherCode |
---|
36 | implements Code |
---|
37 | { |
---|
38 | IO_EXCEPTION_ERROR_TO_GET_OUTPUTSTREAM, |
---|
39 | } |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.