1 21 22 package org.apache.derby.impl.tools.ij; 23 24 import org.apache.derby.iapi.tools.i18n.LocalizedResource; 25 import java.io.IOException ; 26 import java.sql.SQLException ; 27 30 31 public class ijFatalException extends RuntimeException { 32 33 private final static String FatalException = LocalizedResource.getMessage("IJ_FataExceTerm"); 34 private SQLException e; 35 36 public ijFatalException() 37 { 38 super(FatalException); 39 e = null; 40 } 41 42 public ijFatalException(SQLException e) 43 { 44 super(FatalException); 45 this.e = e; 46 } 47 48 public String getSQLState() 49 { 50 return e.getSQLState(); 51 } 52 53 public String toString() 54 { 55 return LocalizedResource.getMessage("IJ_Fata01",e.getSQLState(),e.getMessage()); 56 } 57 } 58 | Popular Tags |