1 28 29 package com.caucho.amber; 30 31 34 public class AmberRuntimeException extends RuntimeException { 35 38 public AmberRuntimeException(String message) 39 { 40 super(message); 41 } 42 43 49 public AmberRuntimeException(String message, Throwable e) 50 { 51 super(message, e); 52 } 53 54 60 public AmberRuntimeException(Throwable e) 61 { 62 super(e); 63 } 64 65 public static RuntimeException create(Throwable e) 66 { 67 if (e instanceof RuntimeException ) 68 return (RuntimeException ) e; 69 else 70 return new AmberRuntimeException(e); 71 } 72 } 73 | Popular Tags |