001 /* 002 003 $Id: NetworkErrorResponse.java,v 1.1 2003/03/26 23:07:42 culdesac Exp $ 004 005 */ 006 007 package sharpster.common; 008 009 import sharpster.common.FileCollection; 010 import sharpster.common.Response; 011 import java.io.Serializable; 012 013 /** 014 * A response containing information about a CVS conflict. 015 */ 016 public class NetworkErrorResponse extends Response implements Serializable { 017 018 /** 019 * 020 */ 021 private String message; 022 023 /** 024 * 025 */ 026 public NetworkErrorResponse() { 027 message = new String(); 028 } 029 030 /** 031 * Returns the type of this response. 032 */ 033 public int getType() { 034 return sharpster.common.ResponseType.NETWORK_ERROR; 035 } 036 037 /** 038 * 039 */ 040 public String getMessage() { 041 return new String(message); 042 } 043 044 /** 045 * 046 */ 047 public void setMessage(String msg) { 048 message = new String(msg); 049 } 050 051 /** 052 * 053 */ 054 public String toString() { 055 String msg = super.toString(); 056 057 msg = "Network error response\n" + msg; 058 msg += "- Message: " + message; 059 060 return msg; 061 } 062 }