Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 5
0
 def f1():
     generate_error(1, "Continue", ErrorAction.ContinueSequenceExecution)
Exemplo n.º 6
0
def generate_error_simple():
    generate_error(1, "Continue", ErrorAction.ContinueSequenceExecution)
Exemplo n.º 7
0
def _gen_abort():
    generate_error(-200, "Abort", ErrorAction.AbortSequence)
Exemplo n.º 8
0
def invalid_error_action():
    generate_error(1, "Message", 1)
Exemplo n.º 9
0
def invalid_error_message():
    generate_error(-1, 22, ErrorAction.AbortSequence)
Exemplo n.º 10
0
def invalid_error_code():
    a = I32Value(-1)
    generate_error(a.value, "Message", ErrorAction.AbortSequence)
Exemplo n.º 11
0
def _gen_stop():
    generate_error(-100, "Stop", ErrorAction.StopSequence)
Exemplo n.º 12
0
 def f1():
     generate_error(-200, "Abort", ErrorAction.AbortSequence)
Exemplo n.º 13
0
 def f1():
     generate_error(-100, "Stop", ErrorAction.StopSequence)