1 11 12 package com.sun.jmx.snmp.daemon; 13 14 import java.io.PrintStream ; 17 import java.io.PrintWriter ; 18 19 28 29 public class CommunicationException extends javax.management.JMRuntimeException { 30 31 32 private static final long serialVersionUID = -2499186113233316177L; 33 34 37 public CommunicationException(Throwable target) { 38 super(target.getMessage()); 39 initCause(target); 40 } 41 42 46 public CommunicationException(Throwable target, String msg) { 47 super(msg); 48 initCause(target); 49 } 50 51 54 public CommunicationException(String msg) { 55 super(msg); 56 } 57 58 61 public Throwable getTargetException() { 62 return getCause(); 63 } 64 65 } 66 | Popular Tags |