diff options
| author | 2020-06-03 13:39:42 -0400 | |
|---|---|---|
| committer | 2020-06-03 18:39:42 +0100 | |
| commit | 0f47403d0220757fed189b76e2071e25b1025cb8 (patch) | |
| tree | 879bf72c4476f0a5e0d82da99d7ff2b2276bcaca /src/main/java/cuchaz/enigma/throwables/IllegalNameException.java | |
| parent | Fix search dialog hanging for a short time sometimes (#250) (diff) | |
| download | enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.gz enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.xz enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.zip | |
Split GUI code to separate module (#242)
* Split into modules
* Post merge compile fixes
Co-authored-by: modmuss50 <modmuss50@gmail.com>
Diffstat (limited to 'src/main/java/cuchaz/enigma/throwables/IllegalNameException.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/throwables/IllegalNameException.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/main/java/cuchaz/enigma/throwables/IllegalNameException.java b/src/main/java/cuchaz/enigma/throwables/IllegalNameException.java deleted file mode 100644 index 0155ad2..0000000 --- a/src/main/java/cuchaz/enigma/throwables/IllegalNameException.java +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * <p> | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.throwables; | ||
| 13 | |||
| 14 | public class IllegalNameException extends RuntimeException { | ||
| 15 | |||
| 16 | private String name; | ||
| 17 | private String reason; | ||
| 18 | |||
| 19 | public IllegalNameException(String name, String reason) { | ||
| 20 | this.name = name; | ||
| 21 | this.reason = reason; | ||
| 22 | } | ||
| 23 | |||
| 24 | public String getReason() { | ||
| 25 | return this.reason; | ||
| 26 | } | ||
| 27 | |||
| 28 | @Override | ||
| 29 | public String getMessage() { | ||
| 30 | StringBuilder buf = new StringBuilder(); | ||
| 31 | buf.append("Illegal name: "); | ||
| 32 | buf.append(this.name); | ||
| 33 | if (this.reason != null) { | ||
| 34 | buf.append(" because "); | ||
| 35 | buf.append(this.reason); | ||
| 36 | } | ||
| 37 | return buf.toString(); | ||
| 38 | } | ||
| 39 | } | ||