ctf.evaluation.simulator.responses
Class ErrorResponse

java.lang.Object
  extended by ctf.evaluation.simulator.responses.Response
      extended by ctf.evaluation.simulator.responses.ErrorResponse

 class ErrorResponse
extends Response

An error message


Constructor Summary
ErrorResponse(Connection connection)
          Constructor.
ErrorResponse(Connection connection, boolean errorIfNotClosed)
          Constructor.
 
Method Summary
 boolean connectionClosed()
          Has the connection been closed?
 java.lang.String errorMessage()
          The error message
 
Methods inherited from class ctf.evaluation.simulator.responses.Response
response, tokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorResponse

ErrorResponse(Connection connection)
        throws java.io.IOException,
               NetworkException,
               ProtocolError
Constructor.

Parameters:
connection - the connection to get the error message from
Throws:
java.io.IOException
NetworkException
ProtocolError

ErrorResponse

ErrorResponse(Connection connection,
              boolean errorIfNotClosed)
        throws java.io.IOException,
               NetworkException,
               ProtocolError
Constructor.

Parameters:
connection - the connection to get the error message from
errorIfNotClosed - whether a failure to close the connection should be considered an error
Throws:
java.io.IOException
NetworkException
ProtocolError
Method Detail

errorMessage

public java.lang.String errorMessage()
The error message


connectionClosed

public boolean connectionClosed()
Has the connection been closed?