xref: /expo/home/api/ApiV2Error.ts (revision cb0e1ce3)
1import ExtendableError from 'es6-error';
2
3export default class ApiV2Error extends ExtendableError {
4  code: string;
5  serverStack?: string;
6
7  constructor(message: string, code: string = 'UNKNOWN') {
8    super(message);
9    this.code = code;
10  }
11}
12