1 29 30 package com.caucho.quercus; 31 32 35 public class QuercusModuleException extends QuercusException { 36 public QuercusModuleException() 37 { 38 } 39 40 public QuercusModuleException(String msg) 41 { 42 super(msg); 43 } 44 45 public QuercusModuleException(Throwable cause) 46 { 47 super(cause); 48 } 49 50 public QuercusModuleException(String msg, Throwable cause) 51 { 52 super(msg, cause); 53 } 54 55 public static RuntimeException create(Throwable e) 56 { 57 if (e instanceof RuntimeException ) 58 return (RuntimeException ) e; 59 else 60 return new QuercusModuleException(e); 61 } 62 } 63 | Popular Tags |