integration tests
This commit is contained in:
16
core/dashboard/domain/errors/DriverNotFoundError.ts
Normal file
16
core/dashboard/domain/errors/DriverNotFoundError.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Driver Not Found Error
|
||||
*
|
||||
* Thrown when a driver with the specified ID cannot be found.
|
||||
*/
|
||||
|
||||
export class DriverNotFoundError extends Error {
|
||||
readonly type = 'domain';
|
||||
readonly context = 'dashboard';
|
||||
readonly kind = 'not_found';
|
||||
|
||||
constructor(driverId: string) {
|
||||
super(`Driver with ID "${driverId}" not found`);
|
||||
this.name = 'DriverNotFoundError';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user