Interface ErrorHandler<C>

Type Parameters:
C - The type of the error code.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@ClassVersion(sourceVersion="$Id: ErrorHandler.java 1025 2022-03-11 16:26:00Z tquadrat $") @API(status=STABLE, since="0.1.0") @FunctionalInterface public interface ErrorHandler<C>
This is a FunctionalInterface meant to process a given error code and to throw an exception based on that, or to cause some side effects.
Author:
Thomas Thrien-thomas.thrien@tquadrat.org
Version:
$Id: ErrorHandler.java 1025 2022-03-11 16:26:00Z tquadrat $
Since:
0.1.0
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.lang.ErrorHandler"

UML Diagram for "org.tquadrat.foundation.lang.ErrorHandler"

UML Diagram for "org.tquadrat.foundation.lang.ErrorHandler"
  • Method Summary

    Modifier and Type
    Method
    Description
    handleError(C errorCode)
    Handle the given error and act accordingly.
  • Method Details

    • handleError

      Handle the given error and act accordingly.
      Parameters:
      errorCode - The error code.
      Returns:
      The exception that was determined based on the given error code.