Interface GTUErrorHandler


  • public interface GTUErrorHandler
    GTU error handler.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version Aug 6, 2019
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Field Detail

      • THROW

        static final GTUErrorHandler THROW
        Default implementation that throws the exception.
      • DELETE

        static final GTUErrorHandler DELETE
        GTU error handler that deletes the GTU upon an exception.
    • Method Detail

      • handle

        void handle​(GTU gtu,
                    Exception ex)
             throws Exception
        Handle exception.
        Parameters:
        gtu - GTU; GTU
        ex - Exception; exception to handle
        Throws:
        Exception - the exception may be thrown