Recapp Code Reference
    Preparing search index...

    Hierarchy

    • StatefulActor<ErrorMessage, Unit, { error: string }>
      • ErrorActor
    Index

    Constructors

    Properties

    pingTimer: any
    state: { error: string } = ...

    State of the actor

    Methods

    • Runs after the actor was started and is ready to receive messages.

      Returns Promise<void>

    • Runs before the actor gets shut down by the actor system

      Returns Promise<void>

    • Abstract method that handles all incoming messages

      Parameters

      • _from: ActorRef
      • message:
            | { ErrorMessage: "SetError" } & { value: Error }
            | { ErrorMessage: "ResetError" } & { value: {} }
            | { ErrorMessage: "LogWarning" } & { value: string }

        message type

      Returns Promise<Unit>

      promised return value. If the caller used ask, this value will be returned to the calling actor