|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ExceptionModelImpl.java | - | 66.7% | 66.7% | 66.7% |
|
||||||||||||||
| 1 | package com.agical.rdoc.core.model.test; | |
| 2 | ||
| 3 | public class ExceptionModelImpl implements ExceptionModel { | |
| 4 | /** | |
| 5 | * | |
| 6 | */ | |
| 7 | private static final long serialVersionUID = 1L; | |
| 8 | private final String message; | |
| 9 | ||
| 10 | 1 | public ExceptionModelImpl(Throwable throwable) { |
| 11 | 1 | this.message = throwable.getMessage(); |
| 12 | } | |
| 13 | ||
| 14 | 1 | public String getMessage() { |
| 15 | 1 | return message; |
| 16 | } | |
| 17 | ||
| 18 | 0 | public String toString() { |
| 19 | 0 | return getMessage(); |
| 20 | } | |
| 21 | } |
|
||||||||||