@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
19 lines (16 loc) • 765 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Exception } from '@dolittle/rudiments';
import { ProjectionCurrentStateType } from '@dolittle/contracts/Runtime/Projections/State_pb';
/**
* Exception that gets thrown when trying to use a {@link ProjectionCurrentStateType} that is unknown.
*/
export class UnknownCurrentStateType extends Exception {
/**
* Initialises a new instance of the {@link UnknownCurrentStateType} class.
* @param {ProjectionCurrentStateType} type - The current state type that is not known.
*/
constructor(type: ProjectionCurrentStateType) {
super(`Unknown current state type ${type}`);
}
}