feat: 完成分类、worksheet 接口开发,资源迁移到七牛
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { HttpException } from '@nestjs/common';
|
||||
import type { ApiErrorReason } from '@doodle/contracts';
|
||||
|
||||
/** 仅由可信业务创建,过滤器只输出已登记原因,不透传第三方异常原文。 */
|
||||
export class ApiException extends HttpException {
|
||||
constructor(
|
||||
status: number,
|
||||
readonly reason: ApiErrorReason,
|
||||
readonly retryAfterSeconds?: number,
|
||||
) {
|
||||
super({ reason }, status);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user