| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Exceptions.sts | 19 * 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 …]
|
| D | Exception.sts | 19 * 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/ |
| D | throw.yaml | 20 .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/docs/bc_verification/ |
| D | cflow_checks.md | 10 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/docs/bc_verification/ |
| D | cflow_checks.md | 10 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/ |
| D | throw.yaml | 25 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/ |
| D | exceptions.py | 18 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/ |
| D | catch.params.yaml | 18 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 …]
|
| D | exec.params.yaml | 16 # 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/ |
| D | builtins_dataview.cpp | 31 // 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 numberOffset ≠ offset or offset < 0, throw a RangeError exception. in DataViewConstructor() 52 THROW_RANGE_ERROR_AND_RETURN(thread, "Offset out of range", JSTaggedValue::Exception()); in DataViewConstructor() 55 // 8. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in DataViewConstructor() 57 … THROW_TYPE_ERROR_AND_RETURN(thread, "buffer is Detached Buffer", JSTaggedValue::Exception()); in DataViewConstructor() [all …]
|
| D | builtins_weak_map.cpp | 30 // 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 …]
|
| D | builtins_finalization_registry.cpp | 31 // 1. If NewTarget is undefined, throw a TypeError exception. in FinalizationRegistryConstructor() 33 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in FinalizationRegistryConstructor() 35 // 2. If IsCallable(cleanupCallback) is false, throw a TypeError exception. in FinalizationRegistryConstructor() 38 … THROW_TYPE_ERROR_AND_RETURN(thread, "cleanupCallback not Callable", JSTaggedValue::Exception()); in FinalizationRegistryConstructor() 74 JSTaggedValue::Exception()); in Register() 76 // 3. If CanBeHeldWeakly(target) is false, throw a TypeError exception. in Register() 78 THROW_TYPE_ERROR_AND_RETURN(thread, "target invalid", JSTaggedValue::Exception()); in Register() 80 // 4. If SameValue(target, heldValue) is true, throw a TypeError exception. in Register() 82 …E_ERROR_AND_RETURN(thread, "target and heldValue should not be equal", JSTaggedValue::Exception()); in Register() 85 // a. If unregisterToken is not undefined, throw a TypeError exception. in Register() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/17.3.Indexable_Types/ |
| D | idx-s03-0030.sts | 29 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");
|
| D | idx-s03-0010.sts | 29 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");
|
| D | idx-s03-0020.sts | 29 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");
|
| D | idx-s03-0000.sts | 34 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");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/07.function_types/ |
| D | function_type.params.yaml | 23 …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/ |
| D | throw.params.yaml | 17 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_frontend/ets2panda/test/ast/compiler/ets/ |
| D | rethrowingCheck5.sts | 21 throw new Exception("I am an exception"); 25 throw new Exception("I am an other exception"); 32 …29:5 Error TypeError: This statement can cause an exception, re-throwing functions can throw excep…
|
| /arkcompiler/ets_runtime/test/quickfix/multi_patch/ |
| D | expect_output.txt | 18 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/ |
| D | pending_exception_gc_test.sts | 17 * 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/ets-templates/17.experimental_features/15.exceptions/ |
| D | new_exception_define.sts | 17 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/ |
| D | ets_try_catch5.sts | 16 //! 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 {
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | implicit_nullcheck_tests.pa | 43 #! EVENT_NEXT /Exception,.*__noinline__call_ldarray.*NULL_CHECK/ 45 #! EVENT_NEXT /Exception,.*__noinline__call_starray.*NULL_CHECK/ 47 #! EVENT_NEXT /Exception,.*__noinline__call_ldobj_i32.*NULL_CHECK/ 49 #! EVENT_NEXT /Exception,.*__noinline__call_stobj_i32.*NULL_CHECK/ 51 #! EVENT_NEXT /Exception,.*__noinline__call_ldobj_f64.*NULL_CHECK/ 53 #! EVENT_NEXT /Exception,.*__noinline__call_stobj_f64.*NULL_CHECK/ 55 #! EVENT_NEXT /Exception,.*__noinline__call_ldobj_obj.*NULL_CHECK/ 57 #! EVENT_NEXT /Exception,.*__noinline__call_stobj_obj.*NULL_CHECK/ 68 #! EVENT /Exception,.*__noinline__call_ldarray.*NULL_CHECK/ 69 #! EVENT_NEXT /Exception,.*__noinline__call_starray.*NULL_CHECK/ [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/runner/ |
| D | runner.rb | 57 def self.print_exception(exception) argument 58 puts "Exception: exception class : #{exception.class}" 59 puts " exception message : #{exception.message}" 60 exception.backtrace.each do |t| 93 output << "\nUnexpected exception when reading from pipe: #{e.class.name}, #{e.message}" 119 rescue Exception => e
|