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

[V3] Implement new Concept Exercise: errors #949

Closed
SleeplessByte opened this issue Jul 10, 2020 · 2 comments · Fixed by #978
Closed

[V3] Implement new Concept Exercise: errors #949

SleeplessByte opened this issue Jul 10, 2020 · 2 comments · Fixed by #978
Assignees

Comments

@SleeplessByte
Copy link
Member

This issue describes how to implement the errors concept exercise for the javascript track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Please also watch the following video:

See the documentation above (general documentation), as well as How to implement a Concept Exercise in JavaScript.

Goal

The goal of this exercise is to teach the student how to handle errors / exception, throw them and create their own.

Learning objectives

  • try {} catch {}
  • throw Error
  • instanceOf SpecialError
  • Creating custom errors
    • Prefilling a message
    • Constructing a message based on some constructor value
    • Storing constructor values on the error (so that you have context)

Out of scope

  • Promise rejection
  • Throwing non-errors

Concepts

  • errors

Prerequisites

  • strings
  • classes-intro

After

Help

You can choose to do this solo-style, or collaborate with multiple people on this. My suggestion would be is to

  1. first accept this issue by saying "I'd like to work on this" (you will not get a response from me. Just go with it) and optionally request that someone works with you (and wait for a second person to accept your request).
  2. Use this issue to write down what you need (collect reference material) and discuss, if necessary, what to write and what not to write.
  3. Draft a PR and request the feedback from at least one other JavaScript member (I recommend just pinging the channel on slack).
@TomPradat
Copy link
Contributor

Can I work on this ?

@SleeplessByte
Copy link
Member Author

Yess

@mikedamay mikedamay transferred this issue from exercism/v3 Jan 28, 2021
@mikedamay mikedamay changed the title [JavaScript] Implement new Concept Exercise: errors [V3] Implement new Concept Exercise: errors Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants