Skip to content

use custom Error class due to Error(string) type #12

@vsimko

Description

@vsimko

something like this

class ConstraintDirectiveError extends Error {
  /** @param {string[]} errors */
  constructor (errors) {
    super("Validation errors")
    this.errors = errors
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions