-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
- Loading branch information
Showing
7 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
src/main/java/com/elovirta/dita/markdown/ParseException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
package com.elovirta.dita.markdown; | ||
|
||
import org.xml.sax.SAXException; | ||
import org.xml.sax.SAXParseException; | ||
|
||
/** | ||
* Markdown parsing exception. Extends RuntimeException because underlying | ||
* parser framework doesn't allow throwing checked exceptions. | ||
*/ | ||
public class ParseException extends RuntimeException { | ||
|
||
ParseException() { | ||
super(); | ||
} | ||
|
||
public ParseException(final String msg) { | ||
super(msg); | ||
super(new SAXException(msg)); | ||
} | ||
|
||
ParseException(final Throwable cause) { | ||
ParseException(final SAXException cause) { | ||
super(cause); | ||
} | ||
|
||
public ParseException(String msg, Throwable cause) { | ||
super(msg, cause); | ||
public ParseException(String msg, Exception cause) { | ||
super(new SAXException(msg, cause)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters