Browse Source

Rename base error class to ARError

customisations
alemart 10 months ago
parent
commit
beb2d85e20
1 changed files with 11 additions and 11 deletions
  1. 11
    11
      src/utils/errors.ts

+ 11
- 11
src/utils/errors.ts View File

23
 /**
23
 /**
24
  * Base error class
24
  * Base error class
25
  */
25
  */
26
-export abstract class BaseError extends Error
26
+export abstract class ARError extends Error
27
 {
27
 {
28
     /**
28
     /**
29
      * Constructor
29
      * Constructor
61
 /**
61
 /**
62
  * A method has received one or more illegal arguments
62
  * A method has received one or more illegal arguments
63
  */
63
  */
64
-export class IllegalArgumentError extends BaseError
64
+export class IllegalArgumentError extends ARError
65
 {
65
 {
66
     public get name(): string
66
     public get name(): string
67
     {
67
     {
73
  * The method arguments are valid, but the method can't be called due to the
73
  * The method arguments are valid, but the method can't be called due to the
74
  * current state of the object
74
  * current state of the object
75
  */
75
  */
76
-export class IllegalOperationError extends BaseError
76
+export class IllegalOperationError extends ARError
77
 {
77
 {
78
     public get name(): string
78
     public get name(): string
79
     {
79
     {
84
 /**
84
 /**
85
  * The requested operation is not supported
85
  * The requested operation is not supported
86
  */
86
  */
87
-export class NotSupportedError extends BaseError
87
+export class NotSupportedError extends ARError
88
 {
88
 {
89
     public get name(): string
89
     public get name(): string
90
     {
90
     {
95
 /**
95
 /**
96
  * Access denied
96
  * Access denied
97
  */
97
  */
98
-export class AccessDeniedError extends BaseError
98
+export class AccessDeniedError extends ARError
99
 {
99
 {
100
     public get name(): string
100
     public get name(): string
101
     {
101
     {
106
 /**
106
 /**
107
  * Timeout
107
  * Timeout
108
  */
108
  */
109
-export class TimeoutError extends BaseError
109
+export class TimeoutError extends ARError
110
 {
110
 {
111
     public get name(): string
111
     public get name(): string
112
     {
112
     {
117
 /**
117
 /**
118
  * Assertion error
118
  * Assertion error
119
  */
119
  */
120
-export class AssertionError extends BaseError
120
+export class AssertionError extends ARError
121
 {
121
 {
122
     public get name(): string
122
     public get name(): string
123
     {
123
     {
128
 /**
128
 /**
129
  * Numerical error
129
  * Numerical error
130
  */
130
  */
131
-export class NumericalError extends BaseError
131
+export class NumericalError extends ARError
132
 {
132
 {
133
     public get name(): string
133
     public get name(): string
134
     {
134
     {
139
 /**
139
 /**
140
  * Tracking error
140
  * Tracking error
141
  */
141
  */
142
-export class TrackingError extends BaseError
142
+export class TrackingError extends ARError
143
 {
143
 {
144
     public get name(): string
144
     public get name(): string
145
     {
145
     {
150
 /**
150
 /**
151
  * Detection error
151
  * Detection error
152
  */
152
  */
153
-export class DetectionError extends BaseError
153
+export class DetectionError extends ARError
154
 {
154
 {
155
     public get name(): string
155
     public get name(): string
156
     {
156
     {
161
 /**
161
 /**
162
  * Training error
162
  * Training error
163
  */
163
  */
164
-export class TrainingError extends BaseError
164
+export class TrainingError extends ARError
165
 {
165
 {
166
     public get name(): string
166
     public get name(): string
167
     {
167
     {

Loading…
Cancel
Save