Searched refs:SomeError (Results 1 – 4 of 4) sorted by relevance
54 throwIfUnchecked(new SomeError()); in testThrowIfUnchecked_Error()56 } catch (SomeError expected) { in testThrowIfUnchecked_Error()395 } catch (SomeError expected) { in testPropagate_NoneDeclared_ErrorThrown()582 private static class SomeError extends Error {} class in ThrowablesTest609 throw new SomeError(); in methodThatThrowsError()
1545 SomeError, enumerator1552 CustomError::SomeError => write!(f, "my custom error"), in fmt()1565 CustomError::SomeError => None, in cause()1689 .query_and_then(NO_PARAMS, |_| Err(CustomError::SomeError)) in test_query_and_then_custom_error_fails()1694 CustomError::SomeError => (), in test_query_and_then_custom_error_fails()1745 db.query_row_and_then(query, NO_PARAMS, |_| Err(CustomError::SomeError)); in test_query_row_and_then_custom_error_fails()1748 CustomError::SomeError => (), in test_query_row_and_then_custom_error_fails()
117 - exceptions must comply with the new Python 3 format: `except SomeError as e:`