Table of Contents

Class UnknownEventTypeException

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Thrown when an event type name read from persisted or otherwise untrusted storage cannot be resolved to a registered type.

public sealed class UnknownEventTypeException : InvalidOperationException, ISerializable
Inheritance
UnknownEventTypeException
Implements
Inherited Members
Extension Methods

Remarks

Event type resolution is allow-list-bounded: a name is resolved only if it is registered (via an IEventTypeRegistry / source-generated type map, or an explicit registration). An unregistered name is rejected with this exception rather than being resolved by an unbounded assembly scan, which makes deserialization of an attacker-chosen (gadget-chain) type structurally inexpressible by default.

Derives from InvalidOperationException so existing callers that catch InvalidOperationException around deserialization continue to work.

Constructors

UnknownEventTypeException()

Initializes a new instance of the UnknownEventTypeException class.

public UnknownEventTypeException()

UnknownEventTypeException(string)

Initializes a new instance of the UnknownEventTypeException class with a specified error message.

public UnknownEventTypeException(string message)

Parameters

message string

The message that describes the error.

UnknownEventTypeException(string, Exception)

Initializes a new instance of the UnknownEventTypeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public UnknownEventTypeException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception.