public class TryFailureTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
thrown |
| Constructor and Description |
|---|
TryFailureTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
flatMap() |
void |
fold() |
void |
foldPassedThrowingExceptionsThrows() |
void |
getOrElse() |
void |
isFailure() |
void |
isSuccess() |
void |
liftingFunctionThatThrowsReturnsFailure() |
void |
map() |
void |
recover() |
void |
recoverMatchingException() |
void |
recoverMismatchingException() |
void |
recoverWith() |
void |
recoverWithMatchingException() |
void |
recoverWithMismatchingException() |
void |
recoverWithPassedThrowingFunctionThrows() |
void |
toEither() |
void |
toOption() |
public void recoverMismatchingException()
throws Exception
Exceptionpublic void recoverWithMatchingException()
throws Exception
Exceptionpublic void recoverWithMismatchingException()
throws Exception
Exceptionpublic void recoverWithPassedThrowingFunctionThrows()
throws Exception
Exceptionpublic void foldPassedThrowingExceptionsThrows()
throws Exception
Exceptionpublic void liftingFunctionThatThrowsReturnsFailure()
Copyright © 2017 Atlassian. All rights reserved.