##### Coverage Report - org.jbehave.core.failures.UUIDExceptionWrapper

Classes in this File | Line Coverage | Branch Coverage | Complexity
UUIDExceptionWrapper |
100% | 10/10
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.core.failures;
2 |  |
3 |  |
     import java.util.UUID;
4 |  |
5 |  |
     /**
6 |  |
      * Wraps an exception by adding an {@link UUID}. This allows a unique identifier
7 |  |
      * to be used repeatedly to represent the exception throw in a step failure
8 |  |
      * throughout the reports. In particular, it allows failing scenario screenshots
9 |  |
      * to be linked to from the HTML report.
10 |  |
      */
11 |  |
     @SuppressWarnings("serial")
12 |  |
     public class UUIDExceptionWrapper extends RuntimeException {
13 |  |
14 | 110 |
         private UUID uuid = UUID.randomUUID();
15 |  |
16 |  |
         public UUIDExceptionWrapper(String message, Throwable cause) {
17 | 7 |
             super(message, cause);
18 | 7 |
         }
19 |  |
20 |  |
         public UUIDExceptionWrapper(Throwable cause) {
21 | 45 |
             super(cause);
22 | 45 |
         }
23 |  |
24 |  |
         public UUIDExceptionWrapper(String s) {
25 | 29 |
             super(s);
26 | 29 |
         }
27 |  |
28 | 29 |
         public UUIDExceptionWrapper() {
29 | 29 |
         }
30 |  |
31 |  |
         public UUID getUUID() {
32 | 23 |
             return uuid;
33 |  |
         }
34 |  |
35 |  |
     }