1 23 24 package org.objectweb.jorm.api; 25 26 30 public class PException extends Exception { 31 34 private Exception nestedException = null; 35 36 39 public PException() { 40 super("NO ERROR MESSAGE!!"); 41 } 43 47 public PException(String error) { 48 super(error); 49 } 51 public PException(Exception e, String error) { 52 super(error); 53 nestedException = e; 54 } 56 public PException(Exception nestedException) { 57 this.nestedException = nestedException; 58 } 59 60 65 public Exception getNestedException() { 66 return nestedException; 67 } 68 69 73 public void print() { 74 System.err.println(); 75 System.err.println(getMessage()); 76 System.err.println(); 77 } } 79 | Popular Tags |