15 lines
308 B
Java
15 lines
308 B
Java
package com.licel.stringer;
|
|
|
|
public class WorkerException extends RuntimeException {
|
|
private final Worker worker;
|
|
|
|
public WorkerException(Worker worker, String message) {
|
|
super(message);
|
|
this.worker = worker;
|
|
}
|
|
|
|
public Worker getWorker() {
|
|
return this.worker;
|
|
}
|
|
}
|