| Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
| JPException |
|
| 1.0;1 |
| 1 | package com.sourceforge.jpatterns.core; |
|
| 2 | ||
| 3 | /** |
|
| 4 | * This exception represents all the scope of the exceptions related to the JPatterns framework. |
|
| 5 | * <br/> |
|
| 6 | * Note: comments to the first version: |
|
| 7 | * It extends the Exception but not the RuntimeException to highlight the importance of the application errors related to the |
|
| 8 | * configurations - it says the users of the JPatterns configure smth. wrong- it is really serious problem from our point of view. |
|
| 9 | * <br/> |
|
| 10 | * Note: up to dated comments: |
|
| 11 | * It was decided to make this exception extending the not chekable RuntimeException not to letter the signatures of the JPatterns and |
|
| 12 | * the signatures of the consumers of JPatterns. |
|
| 13 | * |
|
| 14 | * todo [zmicer]: think over the correct usage of this Exception at the JPatterns sources. |
|
| 15 | * |
|
| 16 | * $Author:: zmicer $<br/> |
|
| 17 | * $Rev:: 57 $<br/> * $Date:: 2007-08-23 09:16:37 #$<br/> |
|
| 18 | */ |
|
| 19 | public class JPException extends RuntimeException |
|
| 20 | { |
|
| 21 | /** |
|
| 22 | * The default public constructor |
|
| 23 | */ |
|
| 24 | public JPException() |
|
| 25 | { |
|
| 26 | 25 | super(); |
| 27 | 25 | } |
| 28 | ||
| 29 | /** |
|
| 30 | * One of the public constructor |
|
| 31 | * |
|
| 32 | * @param message the message param |
|
| 33 | */ |
|
| 34 | public JPException(String message) |
|
| 35 | { |
|
| 36 | 308 | super(message); |
| 37 | 308 | } |
| 38 | ||
| 39 | /** |
|
| 40 | * One of the public constructors |
|
| 41 | * |
|
| 42 | * @param message message param |
|
| 43 | * @param cause param |
|
| 44 | */ |
|
| 45 | public JPException(String message, Throwable cause) |
|
| 46 | { |
|
| 47 | 25 | super(message, cause); |
| 48 | 25 | } |
| 49 | ||
| 50 | /** |
|
| 51 | * One of the forms of the public construtor |
|
| 52 | * |
|
| 53 | * @param cause the throwable param |
|
| 54 | */ |
|
| 55 | public JPException(Throwable cause) |
|
| 56 | { |
|
| 57 | 35 | super(cause); |
| 58 | 35 | } |
| 59 | } |