Home
last modified time | relevance | path

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

12345678910>>...51

/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/static_core/plugins/ets/stdlib/std/core/
DExceptions.sts19 * Represents exception that is thrown in case of null pointer dereference
21 export final class NullPointerException extends Exception {
37 * Represents exception that is thrown in case of ?
39 export final class NoDataException extends Exception {
54 * Represents exception that is thrown when provided argument have value outside the allowable range
56 export final class ArgumentOutOfRangeException extends Exception {
71 …* Represents exception that is thrown when a method has been invoked at an illegal or inappropriat…
73 export class IllegalStateException extends Exception {
88 * Represents exception that is thrown when class is not found
90 export final class ClassNotFoundException extends Exception {
[all …]
DException.sts19 * 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/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/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/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/tests/ets-templates/17.experimental_features/06.statements/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/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/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/17.3.Indexable_Types/
Didx-s03-0030.sts29 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.sts29 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.sts34 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.sts29 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/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/08.function_types/
Dfunction_type.params.yaml23 …let op: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return true…
26 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru…
30 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru…
43 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/14.throw_statements/
Dthrow.params.yaml17 class Ex extends Exception {}
21 if (t1 != t2) throw p as Exception;
33 class Ex extends Exception implements Ie {}
37 if (t1 != t2) throw p as Exception;
48 class Ex extends Exception {}
59 class Ex extends Exception {}
74 class Ex extends Exception {}
83 } catch (e: Exception) {
102 class Ex extends Exception {}
107 } catch (f: Exception) {
[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/ets_frontend/ets2panda/test/ast/compiler/ets/
DrethrowingCheck5.sts21 throw new Exception("I am an exception");
25 throw new Exception("I am an other exception");
32 …abel Error TypeError: This statement can cause an exception, re-throwing functions can throw excep…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Dpending_exception_gc_test.sts17 * 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/interop_js/tests/exceptions/
Ddynamic_function_exception.sts18 // 1. Dynamic function throws user-defined exception E that extends Error (catch clause with E)
22 // Test 1.1 Catch exception and check Error
35 // Test 1.2 Check exception name
48 // Test 1.3 Check exception message
64 //Test 2.1 Catch exception and check Error
79 //3 Dynamic function throws builtin exception E
81 //Test 3.1 Catch exception and check Error
95 // Test 3.2 Check exception name
108 // Test 3.3 Check exception message
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/15.exceptions/
Dnew_exception_define.sts17 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 {}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_try_catch5.sts16 //! 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 class Exception0 extends Exception {}
35 class Exception1 extends Exception {}
40 let ex0: Exception = new Exception0();
41 let ex1: Exception = new Exception1();
49 __noinline__multipleCatch(ex0: Exception, ex1: Exception) : int throws {

12345678910>>...51