mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2025-09-14 13:49:40 +02:00
Even more refactoring
This commit is contained in:
parent
f04a322ac4
commit
c2d4d283bc
14 changed files with 140 additions and 49 deletions
|
@ -0,0 +1,25 @@
|
|||
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package pgp.wkd.cli;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* {@link RuntimeException} wrapper for {@link IOException}.
|
||||
* Background: We want to throw {@link IOException IOExceptions} in {@link Runnable#run()}.
|
||||
*/
|
||||
public class RuntimeIOException extends RuntimeException {
|
||||
|
||||
private final IOException ioException;
|
||||
|
||||
public RuntimeIOException(IOException ioe) {
|
||||
super(ioe);
|
||||
this.ioException = ioe;
|
||||
}
|
||||
|
||||
public IOException getIoException() {
|
||||
return ioException;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue