diff options
| author | 2016-07-04 18:14:22 +1000 | |
|---|---|---|
| committer | 2016-07-04 18:14:22 +1000 | |
| commit | 59e189bef2b5e6d129fb7c2c988ed0b2130e36ac (patch) | |
| tree | 2b638e60905251de85a4917152d6fc39a4112194 /src/main/java/cuchaz/enigma/throwables/MappingParseException.java | |
| parent | Fixed Obf Class list order (diff) | |
| download | enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.tar.gz enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.tar.xz enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.zip | |
Reformat
Diffstat (limited to 'src/main/java/cuchaz/enigma/throwables/MappingParseException.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/throwables/MappingParseException.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/throwables/MappingParseException.java b/src/main/java/cuchaz/enigma/throwables/MappingParseException.java new file mode 100644 index 0000000..93ae2fd --- /dev/null +++ b/src/main/java/cuchaz/enigma/throwables/MappingParseException.java | |||
| @@ -0,0 +1,27 @@ | |||
| 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 | package cuchaz.enigma.throwables; | ||
| 12 | |||
| 13 | public class MappingParseException extends Exception { | ||
| 14 | |||
| 15 | private int m_line; | ||
| 16 | private String m_message; | ||
| 17 | |||
| 18 | public MappingParseException(int line, String message) { | ||
| 19 | m_line = line; | ||
| 20 | m_message = message; | ||
| 21 | } | ||
| 22 | |||
| 23 | @Override | ||
| 24 | public String getMessage() { | ||
| 25 | return "Line " + m_line + ": " + m_message; | ||
| 26 | } | ||
| 27 | } | ||