1 package com.ibm.webdav; 2 3 15 16 20 public class WebDAVException extends java.rmi.RemoteException  21 { 22 private int statusCode = 0; 23 27 public WebDAVException(int statusCode, String statusMessage) { 28 super(statusMessage); 29 this.statusCode = statusCode; 30 } 31 37 public int getStatusCode() { 38 return statusCode; 39 } 40 43 public String toString() { 44 return (new Integer (statusCode)).toString() + ": " + getMessage(); 45 } 46 } 47 | Popular Tags |