Selaa lähdekoodia

Rename base class

customisations
alemart 1 vuosi sitten
vanhempi
commit
67bef87b64
1 muutettua tiedostoa jossa 11 lisäystä ja 11 poistoa
  1. 11
    11
      src/utils/errors.ts

+ 11
- 11
src/utils/errors.ts Näytä tiedosto

21
  */
21
  */
22
 
22
 
23
 /**
23
 /**
24
- * Generic error class
24
+ * Base error class
25
  */
25
  */
26
-export abstract class MartinsError extends Error
26
+export abstract class BaseError 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 MartinsError
64
+export class IllegalArgumentError extends BaseError
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 MartinsError
76
+export class IllegalOperationError extends BaseError
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 MartinsError
87
+export class NotSupportedError extends BaseError
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 MartinsError
98
+export class AccessDeniedError extends BaseError
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 MartinsError
109
+export class TimeoutError extends BaseError
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 MartinsError
120
+export class AssertionError extends BaseError
121
 {
121
 {
122
     public get name(): string
122
     public get name(): string
123
     {
123
     {
128
 /**
128
 /**
129
  * Tracking error
129
  * Tracking error
130
  */
130
  */
131
-export class TrackingError extends MartinsError
131
+export class TrackingError extends BaseError
132
 {
132
 {
133
     public get name(): string
133
     public get name(): string
134
     {
134
     {
139
 /**
139
 /**
140
  * Detection error
140
  * Detection error
141
  */
141
  */
142
-export class DetectionError extends MartinsError
142
+export class DetectionError extends BaseError
143
 {
143
 {
144
     public get name(): string
144
     public get name(): string
145
     {
145
     {
150
 /**
150
 /**
151
  * Training error
151
  * Training error
152
  */
152
  */
153
-export class TrainingError extends MartinsError
153
+export class TrainingError extends BaseError
154
 {
154
 {
155
     public get name(): string
155
     public get name(): string
156
     {
156
     {

Loading…
Peruuta
Tallenna