2017-01-11 20:58:15 -02:00
|
|
|
export const EDITORIAL_WORKFLOW_ERROR = 'EDITORIAL_WORKFLOW_ERROR';
|
|
|
|
|
|
|
|
export default class EditorialWorkflowError extends Error {
|
2020-01-22 23:47:34 +02:00
|
|
|
message: string;
|
|
|
|
notUnderEditorialWorkflow: boolean;
|
|
|
|
constructor(message: string, notUnderEditorialWorkflow: boolean) {
|
2017-01-11 20:58:15 -02:00
|
|
|
super(message);
|
|
|
|
this.message = message;
|
|
|
|
this.notUnderEditorialWorkflow = notUnderEditorialWorkflow;
|
|
|
|
this.name = EDITORIAL_WORKFLOW_ERROR;
|
|
|
|
}
|
|
|
|
}
|