1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.event.*; 27 import org.netbeans.lib.cvsclient.util.*; 28 29 33 public class ErrorResponse implements Response { 34 41 public void process(LoggedDataInputStream dis, ResponseServices services) 42 throws ResponseException { 43 try { 44 MessageEvent event = new MessageEvent(this, dis.readLine(), true); 45 services.getEventManager().fireCVSEvent(event); 46 TerminationEvent termEvent = new TerminationEvent(this, true); 47 services.getEventManager().fireCVSEvent(termEvent); 48 } 49 catch (EOFException ex) { 50 throw new ResponseException(ex, ResponseException.getLocalMessage("CommandException.EndOfFile", null)); } 52 catch (IOException ex) { 53 throw new ResponseException(ex); 54 } 55 } 56 57 62 public boolean isTerminalResponse() { 63 return true; 64 } 65 } | Popular Tags |