在template中增加了exceptionHandler
This commit is contained in:
parent
4d6c25aeca
commit
40c8a4f069
|
|
@ -0,0 +1,9 @@
|
|||
import { ExceptionRouters } from 'oak-frontend-base';
|
||||
import { exceptionRouters as GenenralExceptionRouters } from 'oak-general-business';
|
||||
import { ExampleException } from './types/Exception';
|
||||
|
||||
export const routers = ([
|
||||
[ExampleException, {
|
||||
router: '/url/url',
|
||||
}]
|
||||
] as ExceptionRouters).concat(GenenralExceptionRouters);
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { OakException } from "oak-domain/lib/types";
|
||||
|
||||
export class ExampleException extends OakException {};
|
||||
Loading…
Reference in New Issue