1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare type Throwable = Error | Object;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare class CompositeError extends Error {
|
35 | private errorsRef;
|
36 | constructor(errors: Array<Throwable>);
|
37 | /**
|
38 | * Returns the full list of caught errors.
|
39 | */
|
40 | errors(): Array<Throwable>;
|
41 | }
|
42 | /**
|
43 | * A dummy error that can be used for testing purposes.
|
44 | */
|
45 | export declare class DummyError extends Error {
|
46 | constructor(message?: string);
|
47 | }
|
48 | /**
|
49 | * Thrown by various accessor methods or partial functions to indicate
|
50 | * that the element being requested does not exist.
|
51 | */
|
52 | export declare class NoSuchElementError extends Error {
|
53 | constructor(message?: string);
|
54 | }
|
55 | /**
|
56 | * Error throw in class constructors by implementations that
|
57 | * are sealed or final.
|
58 | */
|
59 | export declare class IllegalInheritanceError extends Error {
|
60 | constructor(message?: string);
|
61 | }
|
62 | /**
|
63 | * Signals that a function has been invoked at an illegal
|
64 | * or inappropriate time.
|
65 | *
|
66 | * In other words, environment or application is not in an
|
67 | * appropriate state for the requested operation.
|
68 | */
|
69 | export declare class IllegalStateError extends Error {
|
70 | constructor(message?: string);
|
71 | }
|
72 | /**
|
73 | * Signals that a function has been invoked with illegal
|
74 | * arguments.
|
75 | */
|
76 | export declare class IllegalArgumentError extends Error {
|
77 | constructor(message?: string);
|
78 | }
|
79 | /**
|
80 | * Signals that a function or a method is missing an implementation,
|
81 | * which should be provided in the future.
|
82 | */
|
83 | export declare class NotImplementedError extends Error {
|
84 | constructor(message?: string);
|
85 | }
|
86 | /**
|
87 | * Signals that completion of a procedure took longer than anticipated.
|
88 | */
|
89 | export declare class TimeoutError extends Error {
|
90 | constructor(message?: string);
|
91 | }
|