public class Rethrow extends Object
Constructor and Description |
---|
Rethrow() |
Modifier and Type | Method and Description |
---|---|
static RuntimeException |
rethrow(Throwable t)
Rethrows t if unchecked, otherwise throws t wrapped in a RuntimeException.
|
public static RuntimeException rethrow(Throwable t)
Rethrows t if unchecked, otherwise throws t wrapped in a RuntimeException.
Use pattern:
try { foobar(); } catch (Exception e) { rethrow(e); // import static }
t
- Copyright © 2015 SeqWare. All rights reserved.