Changeset 382 for tapas/common
- Timestamp:
- 03/01/12 14:49:30 (12 years ago)
- Location:
- tapas/common/implementation/com/ether
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
tapas/common/implementation/com/ether/Context.java
r362 r382 48 48 public static String getSimpleDate() 49 49 { 50 java.util.Calendar c = java.util.Calendar.getInstance();50 Calendar c = Calendar.getInstance(); 51 51 String t = "0" + ( c.get( Calendar.MONTH ) + 1 ); 52 52 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 3 3 /** 4 4 * @author vmipsl 5 * @date 02 feb 2011 5 * @date 02 feb 2011 6 6 */ 7 public class WebException 8 7 public class WebException 8 extends FormattedException 9 9 { 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 ); 16 13 } 17 14 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 ); 20 18 } 21 19 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 } 25 24 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 } 29 29 30 public static enum WebCode implements Code 30 public WebException( final Enum<? extends Code> code, final String string ) 31 31 { 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, 38 44 ERROR_NUMBER_OF_PARAM_TYPES_NOT_EQUAL_TO_PARAM_ANNOTATIONS, 45 PLATEFORM_NOT_FOUND, 46 PARAMETER_NOT_FOUND 47 39 48 } 40 49 }
Note: See TracChangeset
for help on using the changeset viewer.