Skip to content

Commit

Permalink
Remove usage of NestableRuntimeException (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 26, 2024
1 parent f5aa4ac commit 37cfc68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/main/java/net/sf/ezmorph/MorphException.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@

package net.sf.ezmorph;

import org.apache.commons.lang.exception.NestableRuntimeException;

/**
* A <strong>MorphException</strong> indicates that a call to
* <code>Morpher.morph()</code> has failed to complete successfully.<br>
* Based on common-beauntils ConversionException.<br>
*
* @author Andres Almiray <a href="mailto:[email protected]">[email protected]</a>
*/
public class MorphException extends NestableRuntimeException {
public class MorphException extends RuntimeException {
private static final long serialVersionUID = -540093801787033824L;

// ----------------------------------------------------------- Constructors
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/net/sf/json/JSONException.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
*/
package net.sf.json;

import org.apache.commons.lang.exception.NestableRuntimeException;

/**
* The JSONException is thrown when things are amiss.
*
* @author JSON.org
* @version 4
*/
public class JSONException extends NestableRuntimeException {
public class JSONException extends RuntimeException {
private static final long serialVersionUID = 6995087065217051815L;

public JSONException() {
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/sf/json/regexp/Perl5RegexpMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package net.sf.json.regexp;

import org.apache.commons.lang.exception.NestableRuntimeException;
import org.apache.oro.text.regex.MalformedPatternException;
import org.apache.oro.text.regex.Pattern;
import org.apache.oro.text.regex.PatternMatcher;
Expand Down Expand Up @@ -45,7 +44,7 @@ public Perl5RegexpMatcher(String pattern, boolean multiline) {
this.pattern = compiler.compile(pattern, Perl5Compiler.READ_ONLY_MASK);
}
} catch (MalformedPatternException mpe) {
throw new NestableRuntimeException(mpe);
throw new RuntimeException(mpe);
}
}

Expand Down

0 comments on commit 37cfc68

Please sign in to comment.