src/lib/AbstractParser.h
branchv_0
changeset 10 6904e4448807
parent 9 7a6abdd00ab5
child 13 d5e2cb9e31f1
equal deleted inserted replaced
9:7a6abdd00ab5 10:6904e4448807
    62 	virtual void close();
    62 	virtual void close();
    63 protected:
    63 protected:
    64 	AbstractParser();
    64 	AbstractParser();
    65 
    65 
    66 	/**
    66 	/**
    67 	 * Is thrown from read() and peak() methods if there are not enough data.
       
    68 	 * Interrupts current update() cycle and causes rollback.
       
    69 	 */
       
    70 	class ReadBufferUnderflowException {
       
    71 		// TODO: common super-class for exceptions, hidden implementation
       
    72 	};
       
    73 
       
    74 	/**
       
    75 	 * May be thrown from the update() method in order to cancel currenty cycle and do explicit rollback.
    67 	 * May be thrown from the update() method in order to cancel currenty cycle and do explicit rollback.
    76 	 * Same data will be processed in the next cycle.
    68 	 * Same data will be processed in the next cycle.
    77 	 */
    69 	 */
    78 	class ExplicitRollbackException {
    70 	class ExplicitRollbackException {
    79 		// TODO: common super-class for exceptions, hidden implementation
    71 		// TODO: common super-class for exceptions, hidden implementation