Skip to content

IgnoreErrors: return two values #10

@phoe

Description

@phoe

@Test
public void ignoreErrorsNoTransferTest() {
Condition returnValue = ignoreErrors(() -> {});
assertNull(returnValue);
}
@Test
public void ignoreErrorsTransferTest() {
Error error = new Error();
Condition returnValue = ignoreErrors(() -> {
signal(error);
});
assertNotNull(returnValue);
assertEquals(returnValue, error);
}

This should return a pair of a nullable return value and a nullable error to better map to the CL API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions