Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Add bcode wrapper function#42

Merged
akiomik merged 2 commits intodevelopmentfrom
add-bcode-wrapper-function
Nov 3, 2021
Merged

Add bcode wrapper function#42
akiomik merged 2 commits intodevelopmentfrom
add-bcode-wrapper-function

Conversation

@akiomik
Copy link
Copy Markdown
Contributor

@akiomik akiomik commented Nov 3, 2021

No description provided.

@akiomik akiomik added the enhancement New feature or request label Nov 3, 2021
@akiomik akiomik requested a review from shoe116 November 3, 2021 10:07
@akiomik akiomik self-assigned this Nov 3, 2021
Comment on lines +33 to +35
throw new Error(
`<<引数が不正な形式です。param1: ${param1} (${typeof param1}), param2: ${param2} (${typeof param2})>>`
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

将来的にはここで bcodeV3 を呼び出します。

Copy link
Copy Markdown
Contributor

@shoe116 shoe116 left a comment

Choose a reason for hiding this comment

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

方針としてはばっちりだと思います

Comment on lines +26 to +29
param1: string | number | Date,
param2: string | number,
param3: string | boolean = false,
param4: string | boolean = false,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

なるほど

Comment thread src/custom-functions/bcode-v2.ts Outdated
} else if (code === 429) {
throw new Error('<<APIの実行回数が上限に達しました>>')
} else if (Math.floor(code / 100) === 4) {
throw new Error('<<無効なリクエストです>>')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

これ、問い合わせ対応を考えるとちょっと行儀悪くてもメッセージ出力したいな

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

もう少し丁寧にしてみます

Copy link
Copy Markdown
Contributor Author

@akiomik akiomik Nov 3, 2021

Choose a reason for hiding this comment

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

エラー時の例外の内容を出力するようにしてみました。 4153c8b

スクリーンショット 2021-11-03 19 27 50

@akiomik akiomik force-pushed the add-bcode-wrapper-function branch from baec8f4 to 4153c8b Compare November 3, 2021 10:25
@akiomik akiomik merged commit b7d11ba into development Nov 3, 2021
@akiomik akiomik mentioned this pull request Nov 6, 2021
@akiomik akiomik deleted the add-bcode-wrapper-function branch November 10, 2021 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants