1 package de.fhdw.wtf.context.exception;
2
3 /**
4 * This class represents a framework Exception, which occurs when persistence layer operations are used when being
5 * outside of Persistence Context.
6 *
7 */
8 public class OutOfScopeException extends FrameworkException {
9
10 /**
11 * Exception message.
12 */
13 private static final String MESSAGE = "Called from outside a persistence Context in Thread: ";
14 /**
15 * The exception's serial ID.
16 */
17 private static final long serialVersionUID = 1L;
18
19 /**
20 * Creates an OutOfScopeException.
21 *
22 * @param threadName
23 * The name of the culprit thread.
24 */
25 public OutOfScopeException(final String threadName) {
26 super(MESSAGE + threadName);
27 }
28 }