예제 #1
0
    @Specialization
    public NilPlaceholder initialize(RubyException exception, RubyString message) {
      notDesignedForCompilation();

      exception.initialize(message, new RubyArray(getContext().getCoreLibrary().getArrayClass()));
      return NilPlaceholder.INSTANCE;
    }
예제 #2
0
 @Specialization
 public RubyString message(RubyException exception) {
   return exception.getMessage();
 }
예제 #3
0
 @Specialization
 public RubyArray backtrace(RubyException exception) {
   return exception.getBacktrace();
 }