1 20 21 22 package org.snmp4j.agent; 23 24 32 public class DuplicateRegistrationException extends MOException { 33 34 private static final long serialVersionUID = 2067223495895115541L; 35 36 private MOScope scope; 37 private MOScope duplicate; 38 39 public DuplicateRegistrationException() { 40 } 41 42 public DuplicateRegistrationException(String message) { 43 super(message); 44 } 45 46 public DuplicateRegistrationException(MOScope registrationScope) { 47 super(registrationScope.toString()); 48 this.scope = registrationScope; 49 } 50 51 public DuplicateRegistrationException(MOScope registrationScope, 52 MOScope registeredScope) { 53 super(registrationScope.toString()); 54 this.scope = registrationScope; 55 this.duplicate = registeredScope; 56 } 57 58 63 public MOScope getRegistrationScope() { 64 return scope; 65 } 66 67 74 public MOScope getRegisteredScope() { 75 return duplicate; 76 } 77 78 } 79 | Popular Tags |