1 20 21 package org.snmp4j; 22 23 import java.io.IOException ; 24 import org.snmp4j.mp.StatusInformation; 25 26 35 public class MessageException extends IOException { 36 37 private static final long serialVersionUID = 7129156393920783825L; 38 39 private StatusInformation statusInformation; 40 41 public MessageException() { 42 } 43 44 50 public MessageException(StatusInformation status) { 51 super(""+status.getErrorIndication()); 52 setStatusInformation(status); 53 } 54 55 public MessageException(String message) { 56 super(message); 57 } 58 59 public StatusInformation getStatusInformation() { 60 return statusInformation; 61 } 62 63 public void setStatusInformation(StatusInformation statusInformation) { 64 this.statusInformation = statusInformation; 65 } 66 } 67 68 | Popular Tags |