Coverage Report - org.jbehave.core.failures.UUIDExceptionWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
UUIDExceptionWrapper
100%
10/10
N/A
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  103
     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  42
         super(cause);
 22  42
     }
 23  
 
 24  
     public UUIDExceptionWrapper(String s) {
 25  26
         super(s);
 26  26
     }
 27  
 
 28  28
     public UUIDExceptionWrapper() {
 29  28
     }
 30  
 
 31  
     public UUID getUUID() {
 32  22
         return uuid;
 33  
     }
 34  
 
 35  
 }