How to use the verror.VError.info function in verror

To help you get started, we’ve selected a few verror examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github faastjs / faast.js / src / error.ts View on Github external
get info(): { [key: string]: any } {
        return VError.info(this);
    }
github openkfw / TruBudget / api / src / service / domain / errors / already_exists / internal.ts View on Github external
public toUserFacingError(): UserFacingError {
    return {
      type: "ALREADY_EXISTS",
      subject: VError.info(this).subject,
    };
  }
}
github openkfw / TruBudget / api / src / service / domain / errors / invalid_fields.ts View on Github external
public toUserFacingError(): UserFacingError {
    return {
      type: "ALREADY_EXISTS",
      subject: VError.info(this).subject,
    };
  }
}