Home
last modified time | relevance | path

Searched full:throws (Results 1 – 25 of 422) sorted by relevance

12345678910>>...17

/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DGC.ets70 * @throws IllegalArgumentException if current GC does not support requested cause
87 * @throws IllegalArgumentException if current GC does not support requested cause
88 * @throws UnsupportedOperationException if current GC does not support requested cause
89 …* @throws IllegalStateException if try to run threshold GC collection not in place after calling p…
100 …e function startGCImpl(cause: int, callback: Object | undefined, runInPlace: boolean): long throws;
117 * @throws IllegalArgumentException if current GC does not support requested cause
118 * @throws UnsupportedOperationException if VM is running with incorrect GC trigger
120 native function scheduleGcAfterNthAllocImpl(counter: int, cause: int): void throws;
142 * @throws UnsupportedOperationException if GC doesn't support postponing
143 * @throws IllegalStateException if it called after calling postponeGCStart
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/extended_features/
D@arkts.collections.d.ets155 * @throws { BusinessError } 401 - Parameter error. Invalid separator.
169 * @throws { BusinessError } 401 - Parameter error. Invalid `start` or `end` parameters.
206 * @throws { BusinessError } 401 - Parameter error.
207 * @throws { BusinessError } 10200011 - The create method cannot be bound.
219 * @throws { BusinessError } 401 - Parameter error.
220 * @throws { BusinessError } 10200011 - The from method cannot be bound.
231 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
243 * @throws { BusinessError } 401 - Parameter error.
244 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
256 * @throws { BusinessError } 10200011 - The pop method cannot be bound.
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dmethod_override_throw_1.ets17 foo1(): void throws;
18 foo2(param: () => void throws): void rethrows;
23 override foo1(): void throws {}
24 override foo2(param: () => void throws): void rethrows {}
29 foo1(): void throws {}
30 foo2(param: () => void throws): void rethrows {}
35 override foo1(): void throws {}
36 override foo2(param: () => void throws): void rethrows {}
Dvariable_throw_function_1.ets18 function bar() : void throws {}
20 function baz(e: () => void throws) : void rethrows {}
23 let throwing1: () => void throws = foo;
25 let throwing2: () => void throws = bar;
27 let throwing3: (e: () => void throws) => void throws = baz;
DlambdaThrowsRethrows.ets16 let lambda: () => void throws = (): void throws => {}
18 …t lambda2: (param: (c: int, b: int) => char throws) => void throws = (param: (c: int, b: int) => c…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/15.exceptions/01.throwing_functions/
Dlambda.ets18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
24 type func = (x: int) => int throws;
26 function bar(): void throws {
27 let foo: func = (x: int): int throws => { throw new TestException(); return 5; };
32 function main(): void throws {
Dconstructor.ets18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
23 public constructor() throws {
Dfunction.ets18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
22 function bar(): void throws {
Dfunction_without_keyword.ets17 desc: Declaring throwing function without 'throws' keyword.
18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Dpin_object.ets32 pinObjTestsuite.addTest("SimpleTest", (): void throws =>
49 pinObjTestsuite.addTest("AllocatePinnedArrayTest", (): void throws =>
61 pinObjTestsuite.addTest("AllocateNegativeSizePinnedArrayTest", (): void throws =>
64 expectError((): void throws => { GC.allocatePinnedBooleanArray(-1) }, expectedError);
65 expectError((): void throws => { GC.allocatePinnedByteArray(-1) }, expectedError);
66 expectError((): void throws => { GC.allocatePinnedCharArray(-1) }, expectedError);
67 expectError((): void throws => { GC.allocatePinnedShortArray(-1) }, expectedError);
68 expectError((): void throws => { GC.allocatePinnedIntArray(-1) }, expectedError);
69 expectError((): void throws => { GC.allocatePinnedLongArray(-1) }, expectedError);
70 expectError((): void throws => { GC.allocatePinnedFloatArray(-1) }, expectedError);
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/templates/
DHap.ets65 function doGC(): void throws {
77 function runIters(phase: String, count: int, time: int, bench: $state_name): void throws {
102 function main(): void throws {
180 public static consumeBool(boolc: boolean): void throws {
186 public static consumeChar(charc: char): void throws {
192 public static consumeByte(bytec: byte): void throws {
198 public static consumeShort(shortc: short): void throws {
204 public static consumeInt(intc: int): void throws {
210 public static consumeLong(longc: long): void throws {
216 public static consumeFloat(floatc: float): void throws {
[all …]
DTemplate.ets53 function doGC(): void throws {
75 function runIters(phase: String, count: int, time: int, bench: $state_name): void throws {
99 function main(): void throws {
187 public static consumeBool(boolc: boolean): void throws {
193 public static consumeChar(charc: char): void throws {
199 public static consumeByte(bytec: byte): void throws {
205 public static consumeShort(shortc: short): void throws {
211 public static consumeInt(intc: int): void throws {
217 public static consumeLong(longc: long): void throws {
223 public static consumeFloat(floatc: float): void throws {
[all …]
DTemplate.swift74 class func consumeBool(_ v: Bool) throws { in consumeBool()
80 class func consumeChar(_ v: Character) throws { in consumeChar()
86 class func consumeShort(_ v: Int16) throws { in consumeShort()
92 class func consumeInt(_ v: Int) throws { in consumeInt()
98 class func consumeLong(_ v: Int64) throws { in consumeLong()
104 class func consumeFloat(_ v: Float) throws { in consumeFloat()
110 class func consumeDouble(_ v: Double) throws { in consumeDouble()
135 class func consume(_ v: Bool) throws { in consume()
139 class func consume(_ v: Character) throws { in consume()
143 class func consume(_ v: Int16) throws { in consume()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/15.exceptions/05.exceptions_and_errors_inside_field_initializers/
Dfld_prim2.params.yaml16 # negative, throws exception
18 function foo(p: number): number throws {
29 # positive, throws error
43 let a: A = { fld: 8.0 + ((p: number): number throws => {
67 function bar(p: (p: number) => number throws, q: number): number rethrows {
77 function foo(p: number): number throws {
83 function bar(p: (p: number) => number throws, q: number): number rethrows {
93 function bar(p: (p: number) => number throws, q: number): number rethrows {
103 function bar(p: (p: number) => number throws, q: number): number rethrows {
107 let a: A = { fld: 8.0 + bar((p: number): number throws => {
Dfld_prim.params.yaml16 # negative, throws exception
18 function foo(p: number): number throws {
31 # positive, throws error
48 fld: number = 8.0 + ((p: number): number throws => {
77 function bar(p: (p: number) => number throws, q: number): number rethrows {
89 function foo(p: number): number throws {
95 function bar(p: (p: number) => number throws, q: number): number rethrows {
107 function bar(p: (p: number) => number throws, q: number): number rethrows {
119 function bar(p: (p: number) => number throws, q: number): number rethrows {
123 fld: number = 8.0 + bar((p: number): number throws => {
Dfld_obj.params.yaml16 # negative, throws exception
18 function foo(p: number): Object throws {
31 # positive, throws error
48 static fld: Object|null|undefined = ((p: number): Object throws => {
77 function bar(p: (p: number) => Object throws, q: number): Object rethrows {
89 function foo(p: number): Object throws {
95 function bar(p: (p: number) => Object throws, q: number): Object rethrows {
107 function bar(p: (p: number) => Object throws, q: number): Object rethrows {
119 function bar(p: (p: number) => Object throws, q: number): Object rethrows {
123 static fld: Object|null|undefined = bar((p: number): Object throws => {
Dfld_arr.params.yaml16 # negative, throws exception
18 function foo(p: number): number throws {
31 # positive, throws error
48 fld: number[] = [8.0 + ((p: number): number throws => {
77 function bar(p: (p: number) => number throws, q: number): number rethrows {
89 function foo(p: number): number throws {
95 function bar(p: (p: number) => number throws, q: number): number rethrows {
107 function bar(p: (p: number) => number throws, q: number): number rethrows {
119 function bar(p: (p: number) => number throws, q: number): number rethrows {
123 fld: number[] = [8.0 + bar((p: number): number throws => {
Dfld_tup.params.yaml16 # negative, throws exception
18 function foo(p: number): number throws {
31 # positive, throws error
48 fld: [number, string] = [8.0 + ((p: number): number throws => {
77 function bar(p: (p: number) => number throws, q: number): number rethrows {
89 function foo(p: number): number throws {
95 function bar(p: (p: number) => number throws, q: number): number rethrows {
107 function bar(p: (p: number) => number throws, q: number): number rethrows {
119 function bar(p: (p: number) => number throws, q: number): number rethrows {
123 fld: [boolean, number] = [true, 8.0 + bar((p: number): number throws => {
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/
Darktest.ets24 * @throws AssertionError if condition is false
36 * @throws AssertionError unconditionally
46 * @throws AssertionFailed if condition is false
56 * @throws AssertionFailed if condition is true
67 * @throws AssertionError if equality failed
78 * @throws AssertionError if non-equality failed
90 * @throws AssertionError if the difference exceed the absolute error
104 * @throws AssertionError if non-equality failed
115 * @throws AssertionError if non-equality failed
126 * @throws AssertionError if non-equality failed
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/15.exceptions/02.non_throwing_functions/
Dlambda_without_default_catch.ets18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
22 type func = (x: int) => int throws;
25 let bar: func = (x: int): int throws =>
Dconstructor_without_keyword.ets17 desc: Declaring throwing constructor without 'throws' keyword.
18throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DthrowingLambdaFunctions.ets16 function funcWithThrowsParam(f: () => void throws) {
25 function funcThrows(): void throws {
29 function funcRethrows(f: () => void throws) rethrows {
34 function funcDoubleThrows(ff: (f: () => void throws) => void throws) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_string_builder_deopt1.ets18 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/
19 //! METHOD "throws"
31 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/
32 //! METHOD "throws"
46 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/
47 //! METHOD "throws"
58 function throws(str: string, arg: int) {
74 return throws(str, arg);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
DStackTraceTest.ets27 public static invokeUnhandledException(): void throws {
31 static nestedFunc1(): void throws {
35 static nestedFunc2(): void throws {
39 static throwing(): void throws {
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dgeneric_override_2.ets17 then<U, E = never>(onFulfilled?: (value: T) => U|PL<U> throws,
18 onRejected?: (error: NullishType) => E|PL<E> throws): PL<U|E>;
22 then<U, E = never>(onFulfilled?: (value: T) => U|PL<U> throws,
23 onRejected?: (error: NullishType) => E|PL<E> throws): PL<U|E> {

12345678910>>...17