Propagate cause chain
Java
Hard
5 views
Problem Description
Task: wrap exception with cause and rethrow as RuntimeException keeping original cause.
Output Format
Return value
Constraints
Do not lose stack trace.
Official Solution
static int wrapAndThrow(Exception e){throw new RuntimeException(e);}
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!