Exemple #1
0
def generate_abort():
    try:
        a = DoubleValue(0)
        generate_error(-200, "Abort", ErrorAction.AbortSequence)
        a.value += 1
    finally:
        a.value += 1
    return a.value
Exemple #2
0
def _generate_continue_no_fail():
    try:
        a = DoubleValue(0)
        generate_error(0, "Continue", ErrorAction.ContinueSequenceExecution)
        a.value += 1
    finally:
        a.value += 1
    return a.value
Exemple #3
0
def generate_stop():
    try:
        a = DoubleValue(0)
        generate_error(-100, "Stop", ErrorAction.StopSequence)
        a.value += 1
    finally:
        a.value += 1
    return a.value
def call_getlasterror():
    generate_error(1, "Continue1", ErrorAction.ContinueSequenceExecution)
    generate_error(2, "Continue2", ErrorAction.ContinueSequenceExecution)
    a = BooleanValue(False)
    b = I64Value(0)
    b.value = getlasterror()
    if b.value == 2:
        a.value = True
    return a.value
Exemple #5
0
 def f1():
     generate_error(1, "Continue", ErrorAction.ContinueSequenceExecution)
Exemple #6
0
def generate_error_simple():
    generate_error(1, "Continue", ErrorAction.ContinueSequenceExecution)
Exemple #7
0
def _gen_abort():
    generate_error(-200, "Abort", ErrorAction.AbortSequence)
Exemple #8
0
def invalid_error_action():
    generate_error(1, "Message", 1)
Exemple #9
0
def invalid_error_message():
    generate_error(-1, 22, ErrorAction.AbortSequence)
Exemple #10
0
def invalid_error_code():
    a = I32Value(-1)
    generate_error(a.value, "Message", ErrorAction.AbortSequence)
Exemple #11
0
def _gen_stop():
    generate_error(-100, "Stop", ErrorAction.StopSequence)
Exemple #12
0
 def f1():
     generate_error(-200, "Abort", ErrorAction.AbortSequence)
Exemple #13
0
 def f1():
     generate_error(-100, "Stop", ErrorAction.StopSequence)