Schnittstelle Error.OnErrorCopyFunc

Umschließende Klasse:
Error
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Error.OnErrorCopyFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onErrorCopyFunc(CallbackHandler __self, Error src_error, Error dest_error)
    Specifies the type of function which is called when an extended
    error instance is copied.
  • Methodendetails

    • onErrorCopyFunc

      void onErrorCopyFunc(CallbackHandler __self, @Nonnull Error src_error, @Nonnull Error dest_error)
      Specifies the type of function which is called when an extended
      error instance is copied. It is passed the pointer to the
      destination error and source error, and should copy only the fields
      of the private data from @src_error to @dest_error.

      Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it
      already takes care of getting the private data from @src_error and
      @dest_error.
      Parameter:
      src_error - source extended error
      dest_error - destination extended error