Changeset 382 for tapas/common


Ignore:
Timestamp:
03/01/12 14:49:30 (12 years ago)
Author:
vmipsl
Message:

clean

Location:
tapas/common/implementation/com/ether
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tapas/common/implementation/com/ether/Context.java

    r362 r382  
    4848    public static String getSimpleDate() 
    4949    { 
    50         java.util.Calendar c = java.util.Calendar.getInstance(); 
     50        Calendar c = Calendar.getInstance(); 
    5151        String t = "0" + ( c.get( Calendar.MONTH ) + 1 ); 
    5252        return c.get( Calendar.YEAR ) + t.substring( t.length() - 2 ) + c.get( Calendar.DAY_OF_MONTH ); 
  • tapas/common/implementation/com/ether/WebException.java

    r376 r382  
    33/** 
    44 * @author vmipsl 
    5  * @date 02 feb 2011  
     5 * @date 02 feb 2011 
    66 */ 
    7 public class WebException  
    8         extends FormattedException 
     7public class WebException 
     8        extends FormattedException 
    99{ 
    10     public WebException(final Enum<? extends Code> code) { 
    11         super(code); 
    12         } 
    13  
    14         public WebException(final Enum<? extends Code> code, final Throwable cause, final Object... parameters) { 
    15         this(code, cause.getMessage(), cause, parameters); 
     10    public WebException( final Enum<? extends Code> code ) 
     11    { 
     12        super( code ); 
    1613    } 
    1714 
    18     protected WebException(final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters) { 
    19         super(prefix(code, message), cause, parameters); 
     15    public WebException( final Enum<? extends Code> code, final Throwable cause, final Object... parameters ) 
     16    { 
     17        this( code, cause.getMessage(), cause, parameters ); 
    2018    } 
    2119 
    22         public WebException(final Throwable cause) { 
    23                 super(cause); 
    24         } 
     20    protected WebException( final Enum<? extends Code> code, final String message, final Throwable cause, final Object... parameters ) 
     21    { 
     22        super( prefix( code, message ), cause, parameters ); 
     23    } 
    2524 
    26         public WebException( final Enum<? extends Code> code, final String string) { 
    27                 super(code, string); 
    28         } 
     25    public WebException( final Throwable cause ) 
     26    { 
     27        super( cause ); 
     28    } 
    2929 
    30         public static enum WebCode implements Code  
     30    public WebException( final Enum<? extends Code> code, final String string ) 
    3131    { 
    32                 UNKNOWN,  
    33                 PERSISTENCE,  
    34                 SERVICE_PROBLEM, 
    35                 IO_EXCEPTION_ERROR_TO_GET_OUTPUTSTREAM, 
    36                 ERROR_UNSUPPORTED_UTF8_ENCODING, 
    37                 ERROR_NO_REQUEST_HANDLING_METHOD, 
     32        super( code, string ); 
     33    } 
     34 
     35    public static enum WebCode 
     36            implements Code 
     37    { 
     38        UNKNOWN, 
     39        PERSISTENCE, 
     40        SERVICE_PROBLEM, 
     41        IO_EXCEPTION_ERROR_TO_GET_OUTPUTSTREAM, 
     42        ERROR_UNSUPPORTED_UTF8_ENCODING, 
     43        ERROR_NO_REQUEST_HANDLING_METHOD, 
    3844        ERROR_NUMBER_OF_PARAM_TYPES_NOT_EQUAL_TO_PARAM_ANNOTATIONS, 
     45        PLATEFORM_NOT_FOUND, 
     46        PARAMETER_NOT_FOUND 
     47 
    3948    } 
    4049} 
Note: See TracChangeset for help on using the changeset viewer.