Skip to content

Commit

Permalink
Expose MindbodyError
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesurowiec committed Oct 15, 2022
1 parent 7aa35c2 commit 65ffdaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/MindbodyError.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ErrorCode, ErrorResponse } from '$http/types';

export class MindbodyError extends Error {
export default class MindbodyError extends Error {
public code: ErrorCode;

constructor(errorResponse: ErrorResponse) {
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Class from '$mindbody/Class';
import Client from '$mindbody/Client';
import Config from '$Config';
import Enrollment from '$mindbody/Enrollment';
import MindbodyError from '$http/MindbodyError';
import Payroll from '$mindbody/Payroll';
import Sale from '$mindbody/Sale';
import Site from '$mindbody/Site';
Expand All @@ -17,6 +18,7 @@ const exports = {
Client,
Config,
Enrollment,
MindbodyError,
Payroll,
Sale,
Site,
Expand All @@ -31,6 +33,7 @@ export {
Client,
Config,
Enrollment,
MindbodyError,
Payroll,
Sale,
Site,
Expand Down

0 comments on commit 65ffdaa

Please sign in to comment.