feat: introduce Sentry

This commit is contained in:
Ali BARIN
2023-03-10 18:53:10 +00:00
parent 2c18667ffd
commit 4d90df9d9a
19 changed files with 197 additions and 13 deletions

View File

@@ -7,6 +7,7 @@ import Step from './step';
import User from './user';
import Execution from './execution';
import Telemetry from '../helpers/telemetry';
import QuotaExceededError from '../errors/quote-exceeded';
class Flow extends Base {
id!: string;
@@ -152,7 +153,7 @@ class Flow extends Base {
const hasExceeded = await this.checkIfQuotaExceeded();
if (hasExceeded) {
throw new Error('The allowed task quota has been exhausted!');
throw new QuotaExceededError();
}
return this;