Sha256: f911a8e4e36e491ac77a950679ab5f881478883e7d3c91626993861734435fad

Contents?: true

Size: 532 Bytes

Versions: 9

Compression:

Stored size: 532 Bytes

Contents

package com.jrjackson;

import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.RubyException;
import org.jruby.anno.JRubyClass;
import org.jruby.exceptions.RaiseException;

@JRubyClass(name = "JrJackson::ParseError", parent = "RuntimeError")
public class ParseError {
  public static RaiseException newParseError(Ruby ruby, String message) {
    RubyClass errorClass = ruby.getModule("JrJackson").getClass("ParseError");
    return new RaiseException(RubyException.newException(ruby, errorClass, message), true);
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jrjackson-0.2.6 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.5 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.4 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.3 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.2 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.1 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.2.0 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.1.1 src/main/java/com/jrjackson/ParseError.java
jrjackson-0.1.0 src/main/java/com/jrjackson/ParseError.java