Skip to content

ClusterError

9 exports Added in v1.0.0 Source

Errors

Represents an error that occurs when the entity is already processing a request.

Signature

declare class AlreadyProcessingMessage extends any {
  constructor();
  readonly [TypeId]: symbol;
  static is(u: unknown): u is AlreadyProcessingMessage;
}

Represents an error that occurs when a Runner receives a message for an entity that it is not assigned to it.

Signature

declare class EntityNotAssignedToRunner extends any {
  constructor();
  readonly [TypeId]: symbol;
  static is(u: unknown): u is EntityNotAssignedToRunner;
}

MailboxFull

Added in v1.0.0 Source

Represents an error that occurs when the entities mailbox is full.

Signature

declare class MailboxFull extends any {
  constructor();
  readonly [TypeId]: symbol;
  static is(u: unknown): u is MailboxFull;
}

Represents an error that occurs when a message fails to be properly deserialized by an entity.

Signature

declare class MalformedMessage extends any {
  constructor();
  readonly [TypeId]: symbol;
  static refail: <A, E, R>(effect: Effect<A, E, R>) => Effect<A, MalformedMessage, R>;
  static is(u: unknown): u is MalformedMessage;
}

Represents an error that occurs when a message fails to be persisted into cluster's mailbox storage.

Signature

declare class PersistenceError extends any {
  constructor();
  readonly [TypeId]: symbol;
  static refail<A, E, R>(effect: Effect<A, E, R>): Effect<A, PersistenceError, R>;
}

Represents an error that occurs when a Runner is not registered with the shard manager.

Signature

declare class RunnerNotRegistered extends any {
  constructor();
  readonly [TypeId]: symbol;
}

Represents an error that occurs when a Runner is unresponsive.

Signature

declare class RunnerUnavailable extends any {
  constructor();
  readonly [TypeId]: symbol;
  static is(u: unknown): u is RunnerUnavailable;
}

Symbols

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol;

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId;