ppj/hai/hello/ExplosionException.java
2024-06-13 22:48:56 +02:00

21 lines
517 B
Java

/*
* TASK 9
* archived at https://git.femboy.science/femsci/ppj/src/branch/task/9
* by femsci
*/
package hai.hello;
// pentaerythritol tetranitrate was detected in during subsequent spectrometric analysis
public class ExplosionException extends RuntimeException {
public ExplosionException(Car c) {
car = c;
}
private final Car car;
@Override
public String getMessage() {
return String.format("hai hello your car (%s) exploded >:3c", System.identityHashCode(car));
}
}