23.11.2012 Views

The FEE Server Control Engine of the ALICE-TRD - Westfälische ...

The FEE Server Control Engine of the ALICE-TRD - Westfälische ...

The FEE Server Control Engine of the ALICE-TRD - Westfälische ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5 <strong>The</strong> <strong>FEE</strong><strong>Server</strong> <strong>Control</strong> <strong>Engine</strong><br />

types most frequently used are ebug and efatal. <strong>The</strong> type ebug indicates an error caused<br />

by a bug in <strong>the</strong> control engine. This type <strong>of</strong> error should not occur in normal operation.<br />

<strong>The</strong> type efatal is used for all errors which prevent <strong>the</strong> fur<strong>the</strong>r execution <strong>of</strong> <strong>the</strong> control<br />

engine and requires action from <strong>the</strong> operator. After <strong>the</strong> error type is set, <strong>the</strong> error message<br />

is written to <strong>the</strong> class. As already mentioned it is not possible to use classes in <strong>the</strong> catchthrow<br />

mechanism. <strong>The</strong>refore an integer value <strong>of</strong> 42 is thrown.<br />

Usually <strong>the</strong> exceptions are caught by CEStateMachine::triggerTransition(). <strong>The</strong> function<br />

prints <strong>the</strong> error type and <strong>the</strong> message stored in ErrorInfo to <strong>the</strong> logging system and sets<br />

<strong>the</strong> status <strong>of</strong> <strong>the</strong> FSM to state ERROR.<br />

E r r o r I n f o : : g e t I n s t a n c e ( )−>s e t E r r o r t y p e ( type ) ;<br />

* ( E r r o r I n f o : : g e t I n s t a n c e ( ) )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!