1 23 24 34 35 package com.sun.ejb.codegen; 36 37 import com.sun.enterprise.util.i18n.StringManager; 38 39 41 public class JavaCompilerException extends Exception 42 { 43 JavaCompilerException(Throwable t) 44 { 45 super(t); 47 } 48 49 JavaCompilerException(String key, String defalt) 50 { 51 super(localStrings.getStringWithDefault(key, defalt)); 52 } 53 54 JavaCompilerException(String key, String defalt, String oneObj) 55 { 56 this(key, defalt, new Object [] { oneObj }); 57 } 58 59 JavaCompilerException(String key, String defalt, Throwable t) 60 { 61 super(localStrings.getStringWithDefault(key, defalt), t); 62 } 63 64 JavaCompilerException(String key, String defalt, Object [] objs) 65 { 66 super(localStrings.getStringWithDefault(key, defalt, objs)); 67 } 68 69 JavaCompilerException(String key, String defalt, Object [] objs, Throwable t) 70 { 71 super(localStrings.getStringWithDefault(key, defalt, objs) 72 + " -- " + t.getMessage(), t); 73 } 74 75 private static final StringManager localStrings = 76 StringManager.getManager(JavaCompiler.class); 77 } 78 79 80 | Popular Tags |