Interface GTUErrorHandler


public interface GTUErrorHandler
GTU error handler.

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

    Fields 
    Modifier and Type Field Description
    static GTUErrorHandler DELETE
    GTU error handler that deletes the GTU upon an exception.
    static GTUErrorHandler THROW
    Default implementation that throws the exception.
  • Method Summary

    Modifier and Type Method Description
    void handle​(GTU gtu, Exception ex)
    Handle exception.
  • Field Details

  • Method Details

    • 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