Interface GtuErrorHandler


  • public interface GtuErrorHandler
    Gtu error handler.

    Copyright (c) 2013-2020 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