1 23 24 package javax.resource.cci; 25 26 33 public class ResourceWarning extends javax.resource.ResourceException { 34 35 38 public ResourceWarning() { super(); } 39 40 45 public ResourceWarning(String message) { 46 super(message); 47 } 48 49 55 public ResourceWarning(Throwable cause) { 56 super(cause); 57 } 58 59 67 public ResourceWarning(String message, Throwable cause) { 68 super(message, cause); 69 } 70 71 78 public ResourceWarning(String message, String errorCode) { 79 super(message, errorCode); 80 } 81 82 94 public ResourceWarning getLinkedWarning() { 95 try { 96 return ((ResourceWarning )getLinkedException()); 97 } 98 catch (ClassCastException ex) { 99 return null; 100 } 101 } 102 103 114 public void setLinkedWarning(ResourceWarning warning) { 115 setLinkedException(warning); 116 } 117 } 118 | Popular Tags |