mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
wip: replace packages with pure files
This commit is contained in:
1 parent
2d95ca382f
commit
87b8ca5d04
112 files changed
+740
-522
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* eslint-disable max-classes-per-file */
|
||||
import { Event } from './Event'
|
||||
import { IStageException, IGlobalException } from './schema/exception'
|
||||
|
||||
export class StageException extends Event {
|
||||
readonly catchAll: boolean
|
||||
|
||||
constructor({ id, condition, response, catchAll }: IStageException) {
|
||||
super(id, condition, response)
|
||||
this.catchAll = catchAll
|
||||
}
|
||||
}
|
||||
|
||||
export class GlobalException extends Event {
|
||||
constructor({ id, condition, response, requirements }: IGlobalException) {
|
||||
super(id, condition, response, requirements)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user