gx
chenyc
2025-06-12 7b72ac13a83764a662159d4a49b7fffb90476ecb
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Use of this source code is governed by an MIT-style
 * license that can be found in the LICENSE file or at
 * https://opensource.org/licenses/MIT.
 * =============================================================================
 */
/// <amd-module name="@tensorflow/tfjs-layers/dist/errors" />
/**
 * Explicit error types.
 *
 * See the following link for more information about why the code includes
 * calls to setPrototypeOf:
 *
 * https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
 */
/**
 * Equivalent of Python's AttributeError.
 */
export declare class AttributeError extends Error {
    constructor(message?: string);
}
/**
 * Equivalent of Python's RuntimeError.
 */
export declare class RuntimeError extends Error {
    constructor(message?: string);
}
/**
 * Equivalent of Python's ValueError.
 */
export declare class ValueError extends Error {
    constructor(message?: string);
}
/**
 * Equivalent of Python's NotImplementedError.
 */
export declare class NotImplementedError extends Error {
    constructor(message?: string);
}
/**
 * Equivalent of Python's AssertionError.
 */
export declare class AssertionError extends Error {
    constructor(message?: string);
}
/**
 * Equivalent of Python's IndexError.
 */
export declare class IndexError extends Error {
    constructor(message?: string);
}