1 19 package org.netbeans.mdr.persistence; 20 21 import java.io.*; 22 23 32 33 public class RuntimeStorageException extends RuntimeException { 34 35 38 private StorageException storageExcept; 39 40 43 public RuntimeStorageException(StorageException err) { 44 super(err.getMessage()); 45 storageExcept = err; 46 } 47 48 49 public String getMessage() { 50 return storageExcept.getMessage(); 51 } 52 53 54 public String getLocalizedMessage() { 55 return storageExcept.getLocalizedMessage(); 56 } 57 58 59 public void printStackTrace() { 60 storageExcept.printStackTrace(); 61 } 62 63 64 public void printStackTrace(PrintStream ps) { 65 storageExcept.printStackTrace(ps); 66 } 67 68 69 public void printStackTrace(PrintWriter pw) { 70 storageExcept.printStackTrace(pw); 71 } 72 73 } 74 | Popular Tags |