Home
last modified time | relevance | path

Searched full:error (Results 1 – 25 of 4786) sorted by relevance

12345678910>>...192

/arkcompiler/ets_frontend/ets2panda/linter/
Deslint.config.mjs61 'accessor-pairs': 'error',
62 'arrow-body-style': ['error', 'always'],
64 'class-methods-use-this': ['error', { exceptMethods: [], enforceForClassFields: true }],
65 complexity: ['error', { max: 15 }],
66 'consistent-return': ['error', { treatUndefinedAsUnspecified: false }],
67 curly: ['error', 'all'],
68 'default-case': 'error',
70 'dot-notation': 'error',
71 eqeqeq: ['error', 'smart'],
72 'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
[all …]
/arkcompiler/runtime_core/taihe/test/ani_on_off/user/
Dmain.ets26 } catch (error) {
27 console.error("main finsih test ERROR ", error)
37 } catch (error) {
38 console.error("main finsih test ERROR ", error)
48 } catch (error) {
49 console.error("main finsih test ERROR ", error)
59 } catch (error) {
60 console.error("main finsih test ERROR ", error)
70 } catch (error) {
71 console.error("main finsih test ERROR ", error)
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/src/
DEs2pandaNativeModule.ts26 throw new Error('Not implemented');
38 throw new Error('Not implemented');
42 throw new Error('Not implemented');
45 throw new Error('Not implemented');
49 throw new Error('Not implemented');
53 throw new Error('Not implemented');
56 throw new Error('Not implemented');
60 throw new Error('Not implemented');
63 throw new Error('Not implemented');
66 throw new Error('Not implemented');
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorsTest.ets22 suite.addTest("Create an Error object with a message", testCreateError)
23 suite.addTest("Throw an Error and catch it", testThrowError)
24 suite.addTest("Validate the message of the caught Error", testErrorMessage)
25 suite.addTest("Error object with cause", testErrorWithCause)
27 …suite.addTest("Create an AggregateError object with an Array<Error>", testCreateAggregateErrorFrom…
40 err: Error,
41 errSc: Error,
54 factoryUsingConstructor: (x?: string) => Error,
55 factoryUsingStaticInvoke: (x?: string) => Error,
63 `Error in check "${name}" error class with empty message`
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DInvalidLexer.ets64 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */
65 /* @@? 16:16 Error SyntaxError: Unexpected token 'identification literal'. */
66 /* @@? 16:16 Error SyntaxError: Unexpected token 'string literal'. */
67 /* @@? 17:3 Error SyntaxError: Invalid unicode escape sequence */
68 /* @@? 19:19 Error SyntaxError: Invalid digit */
69 /* @@? 19:19 Error SyntaxError: Invalid numeric literal */
70 /* @@? 19:19 Error SyntaxError: Unexpected token 'identification literal'. */
71 /* @@? 21:26 Error SyntaxError: Invalid numeric separator */
72 /* @@? 23:13 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals …
73 /* @@? 23:13 Error SyntaxError: Invalid numeric literal */
[all …]
Dunexpected_token_62.ets29 /* @@? 17:9 Error SyntaxError: Expected '{', got 'identification literal'. */
30 /* @@? 17:18 Error SyntaxError: Unexpected token '{'. */
31 /* @@? 19:1 Error TypeError: Unresolved reference functioew */
32 /* @@? 19:11 Error SyntaxError: Unexpected token 'Nu'. */
33 /* @@? 19:11 Error TypeError: Unresolved reference Nu */
34 /* @@? 20:1 Error SyntaxError: Unexpected token, expected an identifier. */
35 /* @@? 20:1 Error TypeError: Unresolved reference nt */
36 /* @@? 20:10 Error SyntaxError: Unexpected token 'A'. */
37 /* @@? 20:10 Error TypeError: Class name 'A' used in the wrong context */
38 /* @@? 20:12 Error SyntaxError: Unexpected token '{'. */
[all …]
DMultipleParserErrors.ets169 /* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */
170 /* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */
171 /* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifier…
172 /* @@? 37:41 Error SyntaxError: Only 'throws' can be used with function types. */
173 /* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */
174 /* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */
175 /* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */
176 /* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */
177 /* @@? 39:27 Error SyntaxError: Unexpected token ')'. */
178 /* @@? 39:29 Error SyntaxError: Unexpected token '{'. */
[all …]
Dswitch_invalid.ets19 /* @@? 16:7 Error SyntaxError: Unexpected token ':'. */
20 /* @@? 16:7 Error SyntaxError: Expected '(', got ':'. */
21 /* @@? 16:7 Error TypeError: Indexed access is not supported for such expression type. */
22 /* @@? 16:7 Error TypeError: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short…
23 /* @@? 16:15 Error SyntaxError: Expected '{', got ':'. */
24 /* @@? 16:15 Error SyntaxError: Expected ')', got ':'. */
25 /* @@? 16:15 Error SyntaxError: Unexpected token ':', expected 'case' or 'default'. */
26 /* @@? 16:21 Error SyntaxError: Unexpected token '{'. */
27 /* @@? 16:22 Error SyntaxError: Unexpected token ':'. */
28 /* @@? 16:22 Error TypeError: Indexed access is not supported for such expression type. */
[all …]
DInvalidExpressions.ets60 /* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */
61 /* @@? 16:37 Error SyntaxError: Identifier is needed here. */
62 /* @@? 16:40 Error TypeError: Cannot find type 'bool'. */
63 /* @@? 17:20 Error TypeError: Unresolved reference b */
64 /* @@? 17:21 Error SyntaxError: Unexpected token '...'. */
65 /* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */
66 /* @@? 17:24 Error SyntaxError: Unexpected token ')'. */
67 /* @@? 18:13 Error TypeError: Bad operand type, the types of the operands must be numeric, same enu…
68 /* @@? 18:13 Error TypeError: Circular dependency detected for identifier: x */
69 /* @@? 18:14 Error TypeError: Variable 'x' is accessed before it's initialization. */
[all …]
Dinterface_parser_error_1.ets35 /* @@? 16:4 Error SyntaxError: Label must be followed by a loop statement. */
36 /* @@? 16:4 Error TypeError: Unresolved reference Geit */
37 /* @@? 16:9 Error SyntaxError: Unexpected token '{'. */
38 /* @@? 17:2 Error TypeError: Unresolved reference t */
39 /* @@? 17:4 Error SyntaxError: Unexpected token '{'. */
40 /* @@? 17:5 Error TypeError: Unresolved reference name */
41 /* @@? 17:11 Error SyntaxError: Unexpected token ':'. */
42 /* @@? 19:1 Error SyntaxError: Illegal start of INTERFACE expression. */
43 /* @@? 20:5 Error SyntaxError: Identifier expected. */
44 /* @@? 20:14 Error SyntaxError: Unexpected token, expected ','. */
[all …]
DInvalidExpressions1.ets39 /* @@? 16:16 Error SyntaxError: Unexpected token ','. */
40 /* @@? 16:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */
41 /* @@? 16:18 Error SyntaxError: Unexpected token '2'. */
42 /* @@? 16:19 Error SyntaxError: Unexpected token ']'. */
43 /* @@? 18:3 Error SyntaxError: Unexpected token, expected ',' or ']'. */
44 /* @@? 18:3 Error SyntaxError: Unexpected token '...'. */
45 /* @@? 18:6 Error SyntaxError: Unexpected token ','. */
46 /* @@? 18:8 Error SyntaxError: Unexpected token '55'. */
47 /* @@? 18:10 Error SyntaxError: Unexpected token ']'. */
48 /* @@? 20:5 Error TypeError: Unresolved reference x */
[all …]
DInvalidClasses.ets81 /* @@? 16:9 Error TypeError: A is not abstract and does not override abstract method f5(): Promise<…
82 /* @@? 17:12 Error SyntaxError: Duplicated modifier is not allowed. */
83 /* @@? 17:20 Error TypeError: Only abstract or native methods can't have body. */
84 /* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */
85 /* @@? 18:30 Error TypeError: Native, Abstract and Declare methods cannot have body. */
86 /* @@? 19:21 Error TypeError: Static property 'f' must be accessed through it's class 'A' */
87 /* @@? 22:12 Error SyntaxError: Access modifier must precede field and method modifiers. */
88 /* @@? 22:20 Error TypeError: Invalid method modifier(s): an abstract method can't have private, ov…
89 /* @@? 22:46 Error TypeError: Native, Abstract and Declare methods cannot have body. */
90 /* @@? 26:18 Error SyntaxError: Native method cannot be async. */
[all …]
DinvalidTypes.ets40 /* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */
41 /* @@? 24:12 Error SyntaxError: Invalid Type. */
42 /* @@? 24:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */
43 /* @@? 24:12 Error SyntaxError: Unexpected token '...'. */
44 /* @@? 24:15 Error SyntaxError: Unexpected token 'number'. */
45 /* @@? 24:23 Error SyntaxError: Unexpected token ','. */
46 /* @@? 24:25 Error SyntaxError: Unexpected token '...'. */
47 /* @@? 24:28 Error SyntaxError: Unexpected token 'string'. */
48 /* @@? 24:36 Error SyntaxError: Unexpected token ']'. */
49 /* @@? 26:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */
[all …]
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dtryldglobalbyname_global_object.ts25 } catch (error) {
26 print(error);
37 } catch (error) {
38 print(error);
43 print(Error);
44 globalThis.Error = "Error";
45 print(Error);
46 delete globalThis.Error;
48 print(Error);
49 } catch (error) {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/sdkwhite/
Dquoted_hyphen_props_deprecated_sdk.ets29 'content-type': 'application/json', // Error
30 range: 'bytes=0-1023' // Error
37 'authorization': 'Bearer abc123', // Error
38 'content-type': 'application/json' // Error
40 basicHeaders.cookie =''; // Error
43 'authorization': authToken ? `Bearer ${authToken}` : undefined, // Error
44 'accept': 'application/json', // Error
45 'cache-control': 'no-cache', // Error
46 'user-agent': 'MyApp/2.0' // Error
49 createHeaders(basicHeaders.cookie); // Error
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/
Dun_bool_ops.params.yaml21 let v: string|number|Error|null|boolean = new Error()
28 let v: string|number|Error|null|boolean = new Error()
32 let v: string|number|Error|null|boolean = new Error()
33 let q: Error|boolean = true
40 let v: string|number|Error|null|boolean = new Error()
41 let q: Error|boolean = true
49 let v: string|number|Error|null|boolean = new Error()
50 let q: Error|boolean = false
57 let v: string|number|Error|null|boolean = new Error()
58 let q: Error|boolean = true
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/
DMultipleParserErrors.ets169 /* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */
170 /* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */
171 /* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifier…
172 /* @@? 37:41 Error SyntaxError: Only 'throws' can be used with function types. */
173 /* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */
174 /* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */
175 /* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */
176 /* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */
177 /* @@? 39:27 Error SyntaxError: Unexpected token ')'. */
178 /* @@? 39:29 Error SyntaxError: Unexpected token '{'. */
[all …]
DinvalidTypes.ets40 /* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */
41 /* @@? 24:12 Error TypeError: FixedArray<T> must have only one type parameter. */
42 /* @@? 24:23 Error SyntaxError: Invalid Type. */
43 /* @@? 24:23 Error SyntaxError: Unexpected token, expected '>'. */
44 /* @@? 24:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */
45 /* @@? 24:23 Error SyntaxError: Unexpected token '>'. */
46 /* @@? 24:26 Error SyntaxError: Unexpected token 'number'. */
47 /* @@? 24:26 Error TypeError: Type name 'number' used in the wrong context */
48 /* @@? 24:26 Error TypeError: Bad operand type, the types of the operands must be numeric, same enu…
49 /* @@? 24:33 Error SyntaxError: Unexpected token ','. */
[all …]
/arkcompiler/runtime_core/static_core/irtoc/backend/
Ddwarf_builder.cpp39 [[maybe_unused]] int *error) in CreateSectionCallback() argument
63 Dwarf_Error error {nullptr}; in DwarfBuilder() local
67 this, GetIsaName(GetArch()), "V4", nullptr, &dwarf_, &error); in DwarfBuilder()
68 if (error != DW_DLV_OK) { in DwarfBuilder()
69 LOG(FATAL, COMPILER) << "Dwarf initialization failed: " << dwarf_errmsg(error); in DwarfBuilder()
72 int res = dwarf_pro_set_default_string_form(dwarf_, DW_FORM_string, &error); in DwarfBuilder()
74 LOG(FATAL, COMPILER) << "dwarf_pro_set_default_string_form failed: " << dwarf_errmsg(error); in DwarfBuilder()
77 …eUnitDie_ = dwarf_new_die(dwarf_, DW_TAG_compile_unit, nullptr, nullptr, nullptr, nullptr, &error); in DwarfBuilder()
78 if (error != DW_DLV_OK || IsDwarfBadAddr(compileUnitDie_)) { in DwarfBuilder()
79 LOG(FATAL, COMPILER) << "dwarf_new_die failed: " << dwarf_errmsg(error); in DwarfBuilder()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D12_errors.rst15 Error Handling
22 recovering from different error situations in a program. Normal program
33 The term *error* in this specification denotes all kinds of error situations.
38 runtime error
57 *Error* is the base class of all error situations. Defining a new
58 error class is normally not required because essential error classes for
62 However, a developer can handle a new error situation by using ``Error``
63 class itself, or by a subclass of ``Error``. An example of error
67 error
69 error handling
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/js/
DInvalidExpressions.js71 // This should be the last line to check syntax error about missing '}'
73 /* @@@ label Error SyntaxError: Illegal expression. Wrap left hand side or entire exponentiation in…
74 /* @@@ label1 Error SyntaxError: Unexpected token '<'. */
75 /* @@@ label2 Error SyntaxError: Invalid left-hand side operator. */
76 /* @@@ label3 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */
77 /* @@@ label4 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */
78 /* @@@ label5 Error SyntaxError: Invalid left-hand side in prefix operation. */
79 /* @@@ label6 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */
80 /* @@@ label7 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */
81 /* @@@ label8 Error SyntaxError: Deleting local variable in strict mode. */
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/annotations_tests/
DannotationUsage_missing_AT_for_function_param.ets28 /* @@? 19:10 Error TypeError: Only abstract or native methods can't have body. */
29 /* @@? 19:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */
30 /* @@? 19:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */
31 /* @@? 19:20 Error TypeError: need to specify target type for class composite */
32 /* @@? 19:42 Error SyntaxError: Unexpected token 'x'. */
33 /* @@? 19:45 Error SyntaxError: Label must be followed by a loop statement. */
34 /* @@? 19:45 Error SyntaxError: Unexpected token 'int'. */
35 /* @@? 19:48 Error SyntaxError: Unexpected token ')'. */
36 /* @@? 19:50 Error SyntaxError: Unexpected token '{'. */
37 /* @@? 22:1 Error TypeError: Function foo is already declared. */
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/models/
Dcode.test.ts23 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
24 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 },
25 verifier: { output: 'verifier output', error: 'verifier error', exit_code: 2 },
31 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
32 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 },
33 verifier: { output: 'verifier output', error: 'verifier error', exit_code: 2 },
42 compile: { output: '', error: '', exit_code: undefined },
43 disassembly: { output: '', code: '', error: '', exit_code: undefined },
44 verifier: { output: '', error: '', exit_code: undefined },
52 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
[all …]
/arkcompiler/runtime_core/libabckit/include/c/isa/
Disa_dynamic.h272 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
273 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
274 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or
284 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
285 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `md` is NULL.
286 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
287 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or
289 …* @note Set `ABCKIT_STATUS_WRONG_CTX` error if corresponding `AbckitFile`s owning `inst` and `md` …
297 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
298 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
Dkeyof_invalid_argument.ets26 /* @@? 16:24 Error SyntaxError: Using object literals to declare types in place is not supported. P…
27 /* @@? 16:42 Error SyntaxError: Using object literals to declare types in place is not supported. P…
28 /* @@? 16:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */
29 /* @@? 18:33 Error TypeError: Cannot find type 'Observable'. */
30 /* @@? 18:33 Error TypeError: The super type of 'ObservableImpl' class is not extensible. */
31 /* @@? 20:24 Error SyntaxError: Using object literals to declare types in place is not supported. P…
32 /* @@? 20:27 Error SyntaxError: Unexpected token 'K'. */
33 /* @@? 20:32 Error SyntaxError: Field type annotation expected. */
34 /* @@? 20:41 Error SyntaxError: Unexpected token '&'. */
35 /* @@? 20:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */
[all …]

12345678910>>...192