1 18 package org.osgi.service.upnp; 19 20 21 27 public class UPnPException extends Exception { 28 static final long serialVersionUID = -262013318122195146L; 29 30 33 public final static int INVALID_ACTION = 401; 34 35 39 public final static int INVALID_ARGS = 402; 40 41 44 public final static int INVALID_SEQUENCE_NUMBER = 403; 45 46 49 public final static int INVALID_VARIABLE = 404; 50 51 54 public final static int DEVICE_INTERNAL_ERROR = 501; 55 56 60 private final int errorCode; 61 62 69 public UPnPException(int errorCode, String errordesc) { 70 super(errordesc); 71 this.errorCode = errorCode; 72 } 73 74 80 public int getUPnPError_Code() { 81 return errorCode; 82 } 83 } 84 | Popular Tags |