Home
last modified time | relevance | path

Searched full:exception (Results 1 – 25 of 1322) sorted by relevance

12345678910>>...53

/arkcompiler/ets_runtime/test/aottest/array_inline_exception/
Darray_inline_exception.ts25 arr.forEach(() => {throw new Error('exception')})
27 print("arrayForEach exception catched success")
30 arr.find(() => { throw new Error('exception')})
32 print("arrayFind exception catched success")
35 arr.findIndex(() => { throw new Error('exception')})
37 print("arrayFindIndex exception catched success")
41 arr.filter(() => { throw new Error('exception')})
43 print("arrayFilter exception catched success")
47 arr.map(() => { throw new Error('exception')})
49 print("arrayMap exception catched success")
[all …]
Dexpect_output.txt14 arrayForEach exception catched success
15 arrayFind exception catched success
16 arrayFindIndex exception catched success
17 arrayFilter exception catched success
18 arrayMap exception catched success
19 arraySome exception catched success
20 arrayEvery exception catched success
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dthrow.yaml20 .record panda.Exception <external>
37 title: Throw exception
38 description: Throw an exception located in register.
202 description: Throw an exception located in register.
255 description: Throw an exception located in register.
309 …n: Throw an exception located in register. The current method is searched for the first exception
394 …n: Throw an exception located in register. The current method is searched for the first exception
450 isinstance panda.Exception
468 .catch panda.Exception, try_begin, try_end, catch_Ex_block_begin
473 - values: [1, 2, 3, 0, panda.Exception]
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/
Dassignment_of_arrays_with_union_types_n.params.yaml18 desc: Exception assignment of undefined to an array of object or string union type.
23 desc: Exception assignment of a number to an array of string or null union type.
27 desc: Exception assignment of a number to an array of boolean or object union type.
35 desc: Exception assignment of a date string to an array of custom class or number union type.
39 desc: Exception assignment of a boolean array to an array of string or function union type.
43 desc: Exception assignment of a string to an array of boolean or float type.
51 desc: Exception assignment of a date object to an array of custom class or Promise union type.
55 desc: Exception assignment of a string to an array of number or number[] type.
59 desc: Exception assignment of a number to an array of boolean or bigint union type.
63 desc: Exception assignment of a string to an array of number or Float64Array union type.
[all …]
/arkcompiler/runtime_core/static_core/docs/bc_verification/
Dcflow_checks.md10 exception
19 exception
36 I.e. layout of exception handlers is rather flexible, even
50 exception
69 exception
87 exception
105 ### Code to exception handler
119 exception
137 exception
145 fallthrough on beginning of exception handler are allowed.
[all …]
/arkcompiler/runtime_core/docs/bc_verification/
Dcflow_checks.md10 exception
19 exception
36 I.e. layout of exception handlers is rather flexible, even
50 exception
69 exception
87 exception
105 ### Code to exception handler
119 exception
137 exception
145 fallthrough on beginning of exception handler are allowed.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/
DLRUCacheExceptionTest.ets23 const suite = new ArkTestsuite("LRUCache API Exception tests")
44 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
47 assertTrue(false, "LRUCache should throw an exception when capacity is not int");
55 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
58 assertTrue(false, "LRUCache should throw an exception when capacity is not int");
66 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
69 assertTrue(false, "LRUCache should throw an exception when capacity is not int");
77 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is negative")
80 assertTrue(false, "LRUCache should throw an exception when capacity is negative");
87 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dthrow.yaml25 title: Throw exception
26 description: Throw an exception located in register.
148 description: Throw an exception located in register.
199 …n: Throw an exception located in register. The current method is searched for the first exception
282 …n: Throw an exception located in register. The current method is searched for the first exception
311 description: "Check that register keeps ref to exception object in catch block"
313 description: Throw an exception located in register.
344 description: "Check exception propagation to outer try-catch block"
346 …d for the first exception handler that matches the class of exception. If exception handler is fou…
415 description: "Check exception propagation to outer frame"
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
Dexceptions.py18 class InvalidFileFormatException(Exception):
24 class InvalidFileStructureException(Exception):
31 class UnknownTemplateException(Exception):
32 def __init__(self, filepath: str, exception: Exception) -> None: argument
33 super().__init__(f"{filepath}: {str(exception)}")
35 self.exception = exception
38 class InvalidMetaException(Exception):
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DExceptions.ets20 * Represents exception that is thrown in case of ?
22 export final class NoDataException extends Exception {
37 * Represents exception that is thrown when provided argument have value outside the allowable range
39 export final class ArgumentOutOfRangeException extends Exception {
54 …* Represents exception that is thrown when a method has been invoked at an illegal or inappropriat…
56 export class IllegalStateException extends Exception {
71 * Represents exception that is thrown when the requested operation is not supported.
73 export final class UnsupportedOperationException extends Exception {
88 * @class Represents exception that is thrown when
91 export final class IllegalArgumentException extends Exception {
[all …]
DException.ets19 * Strores information about stacktrace and cause in case of an exception.
20 * Serves as a base class for all exception classes.
22 export class Exception {
31 * Constructs a new empty exception instance
40 * Constructs a new exception instance with provided message
42 * @param msg message of the exception
51 * Constructs a new exception instance with provided message and cause
53 * @param msg message of the exception
55 * @param cause cause of the exception
65 * Result includes exception message and the stacktrace
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/02.multiple_catch_clauses_in_try_statements/
Dcatch.params.yaml18 class Ex extends Exception {}
19 class Fx extends Exception {}
36 class Ex extends Exception {}
37 class Fx extends Exception {}
54 class Ex extends Exception {}
55 class Fx extends Exception {}
74 class Ex extends Exception {}
75 class Fx extends Exception {}
82 } catch (w: Exception) {
92 class Ex extends Exception {}
[all …]
Dexec.params.yaml16 # exception propagation to caller context
18 class Ex extends Exception {}
52 class Ex extends Exception {}
55 if (1 != 2) throw new Exception();
75 class Ex extends Exception implements I {}
76 class F extends Exception implements I {}
80 if (1 != 2) throw exc as Exception;
104 # assignment compatible to exception
107 class Ex extends Exception implements I {}
111 if (1 != 2) throw exc as Exception;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/exceptions/js_to_sts/
Ddynamic_function_exception.ets22 // 1. Dynamic function throws user-defined exception E that extends Error (catch clause with E)
24 // Test 1.1 Catch exception and check Error
35 // Test 1.2 Check exception name
46 // Test 1.3 Check exception message
59 //Test 2.1 Catch exception and check Error
73 //3 Dynamic function throws builtin exception E
75 //Test 3.1 Catch exception and check Error
87 // Test 3.2 Check exception name
97 // Test 3.3 Check exception message
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/17.3.Indexable_Types/
Didx-s03-0030.ets29 throw new Exception ("Hmm ...");
39 throw new Exception ("Hmm ...");
48 throw new Exception ("Hmm ...");
58 throw new Exception ("Hmm ...");
77 console.log("Unexpexted exception 1");
84 console.log("Unexpexted exception 1");
91 console.log("Unexpexted exception 3");
98 console.log("Unexpexted exception 4");
105 console.log("Unexpexted exception 5");
112 console.log("Unexpexted exception 6");
Didx-s03-0010.ets29 throw new Exception ("Hmm ...");
39 throw new Exception ("Hmm ...");
60 throw new Exception ("Hmm ...");
73 throw new Exception ("Hmm ...");
100 console.log("Unexpexted exception 1");
108 console.log("Unexpexted exception 2");
116 console.log("Unexpexted exception 3");
124 console.log("Unexpexted exception 4");
131 console.log("Unexpexted exception 5");
139 console.log("Unexpexted exception 6");
Didx-s03-0000.ets34 throw new Exception ("Hmm ...");
44 throw new Exception ("Hmm ...");
65 throw new Exception ("Hmm ...");
78 throw new Exception ("Hmm ...");
104 console.log("Unexpexted exception");
112 console.log("Unexpexted exception");
120 console.log("Unexpexted exception");
128 console.log("Unexpexted exception");
135 console.log("Unexpexted exception");
143 console.log("Unexpexted exception");
Didx-s03-0020.ets29 throw new Exception ("Hmm ...");
39 throw new Exception ("Hmm ...");
60 throw new Exception ("Hmm ...");
73 throw new Exception ("Hmm ...");
100 console.log("Unexpexted exception 1");
108 console.log("Unexpexted exception 2");
116 console.log("Unexpexted exception 3");
124 console.log("Unexpexted exception 4");
131 console.log("Unexpexted exception 5");
139 console.log("Unexpexted exception 6");
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_dataview.cpp31 // 1. If NewTarget is undefined, throw a TypeError exception. in DataViewConstructor()
33 THROW_TYPE_ERROR_AND_RETURN(thread, "newtarget is undefined", JSTaggedValue::Exception()); in DataViewConstructor()
36 // 2. If Type(buffer) is not Object, throw a TypeError exception. in DataViewConstructor()
38 THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not Object", JSTaggedValue::Exception()); in DataViewConstructor()
40 // 3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a TypeError exception. in DataViewConstructor()
42 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is not ArrayBuffer", JSTaggedValue::Exception()); in DataViewConstructor()
50 // 7. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in DataViewConstructor()
52 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is Detached Buffer", JSTaggedValue::Exception()); in DataViewConstructor()
57 // 9. If offset > bufferByteLength, throw a RangeError exception. in DataViewConstructor()
59 … THROW_RANGE_ERROR_AND_RETURN(thread, "offset > bufferByteLength", JSTaggedValue::Exception()); in DataViewConstructor()
[all …]
Dbuiltins_weak_map.cpp30 // 1.If NewTarget is undefined, throw a TypeError exception in WeakMapConstructor()
34 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in WeakMapConstructor()
55 THROW_TYPE_ERROR_AND_RETURN(thread, "iterable is not object", JSTaggedValue::Exception()); in WeakMapConstructor()
63 // If IsCallable(adder) is false, throw a TypeError exception in WeakMapConstructor()
77 // 2.If Type(S) is not Object, throw a TypeError exception. in Delete()
78 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Delete()
80 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Delete()
99 // 2.If Type(S) is not Object, throw a TypeError exception. in Has()
100 // 3.If S does not have a [[WeakMapData]] internal slot, throw a TypeError exception. in Has()
102 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakMap.", JSTaggedValue::Exception()); in Has()
[all …]
/arkcompiler/ets_runtime/test/quickfix/multi_patch/
Dexpect_output.txt18 QuickFix start check exception
19 QuickFix have no exception
26 QuickFix start check exception
27 QuickFix have no exception
34 QuickFix start check exception
35 QuickFix have no exception
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Dpending_exception_gc_test.ets17 * Test case when we have moving GC along with pending exception.
18 * Check that exception is correctly processed
23 // create object of exception class
24 let e: Exception = new Exception("test");
27 // in order to have GC running during exception processing
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_try_catch5.ets16 //! CHECKER Try Catch Resolving JIT Do not optimize when exception instances are function para…
25 //! CHECKER Try Catch Resolving AOT with with exception instances as function parameters
34 //! CHECKER Try Catch Resolving AOT+PGO with with exception instances as function parameters
44 class Exception0 extends Exception {}
45 class Exception1 extends Exception {}
50 let ex0: Exception = new Exception0();
51 let ex1: Exception = new Exception1();
59 __noinline__multipleCatch(ex0: Exception, ex1: Exception) : int throws {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/lookup_by_name/
Dcorrect_case_ref_2.pa19 .record std.core.Exception <external> {
27 std.core.Exception bar
42 .function void C.<set>bar(C a0, std.core.Exception a1) <access.function=public> {
44 ldobj.obj a1, std.core.Exception.message
49 .record $NamedAccessMeta-std-core-Exception {
50 std.core.Exception bar
69 ets.stobj.name.obj a1, $NamedAccessMeta-std-core-Exception.bar
75 ets.stobj.name.obj a1, $NamedAccessMeta-std-core-Exception.bar
94 ldobj.v.obj v4, v4, std.core.Exception.message
103 ldobj.v.obj v4, v4, std.core.Exception.message
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/15.exceptions/
Dnew_exception_define.ets17 desc: Define new Exception.
18 assert: Exception is the base class of all the exceptions. To define a new exception use Exception
22 class TestException extends Exception {}

12345678910>>...53