Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BiseoError 생성 시 serialize 메서드가 존재하지 않음 #420

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

withSang
Copy link
Member

요약 *

It fixes #419

biseo-api의 libs/error.ts에서 BiseoError 클래스를 Error 클래스를 extend해 사용하고 있는데, TypeScript 2.1부터 Error 클래스를 extend할 수 없다고 합니다(microsoft/TypeScript#12123 이슈 참조).

사실 Error 클래스를 extend할 이유가 없어서(클라이언트에만 전달되는 에러입니다 - 감사해요 @SnowSuno ), BiseoError가 Error를 extend하지 않게 수정하였습니다.

이후 Task *

  • 없음

Co-authored-by: Soonho Kwon <percy3368@gmail.com>
@withSang withSang linked an issue Oct 24, 2023 that may be closed by this pull request
1 task
@netlify
Copy link

netlify bot commented Oct 24, 2023

Deploy Preview for biseo-preview ready!

Name Link
🔨 Latest commit 5ea9003
🔍 Latest deploy log https://app.netlify.com/sites/biseo-preview/deploys/653818954d03990007703e0c
😎 Deploy Preview https://deploy-preview-420--biseo-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@withSang withSang marked this pull request as draft October 24, 2023 19:14
@withSang
Copy link
Member Author

withSang commented Oct 24, 2023

아 BiseoError는 Error가 아닌 literal이라 throw시 오류가 발생하군요..... eslint 일하네
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-throw-literal.md

@withSang
Copy link
Member Author

스테이징된 파일들에 대해서만 컨벤션 검사가 이루어지니 PR을 올린 이후에야 발견하게 되는 오류들이 있군요..

@withSang withSang marked this pull request as ready for review October 24, 2023 19:20
Copy link
Member

@SnowSuno SnowSuno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@SnowSuno SnowSuno merged commit 36ebc4f into main Oct 25, 2023
5 checks passed
@SnowSuno SnowSuno deleted the feat/biseo-error-not-extends-error branch October 25, 2023 11:42
@minjoo0729
Copy link
Collaborator

또 새로운 걸 배웠군
수고하셨습니당 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BiseoError 생성 시 serialize 메서드가 존재하지 않음
3 participants