org.jruby.common
Class RubyErrorHandler

java.lang.Object
  extended byorg.jruby.common.RubyErrorHandler
All Implemented Interfaces:
IErrorHandler, IRubyErrorHandler

public class RubyErrorHandler
extends java.lang.Object
implements IRubyErrorHandler

Version:
$Revision: 1.5 $
Author:
jpetersen

Constructor Summary
RubyErrorHandler(Ruby runtime)
          Constructor for RubyErrorHandler.
 
Method Summary
 void handleError(int type, ISourcePosition position, java.lang.String message)
           
 void handleError(int type, ISourcePosition position, java.lang.String message, java.lang.Object args)
           
 void handleError(int type, java.lang.String message)
           
 boolean isHandled(int type)
           
 boolean isVerbose()
          Gets the verbose.
 void setVerbose(boolean verbose)
          Sets the verbose.
 void warn(java.lang.String message)
           
 void warning(java.lang.String message)
          reports only if in verbose mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyErrorHandler

public RubyErrorHandler(Ruby runtime)
Constructor for RubyErrorHandler.

Method Detail

isHandled

public boolean isHandled(int type)
Specified by:
isHandled in interface IErrorHandler
See Also:
IErrorHandler.isHandled(int)

handleError

public void handleError(int type,
                        ISourcePosition position,
                        java.lang.String message,
                        java.lang.Object args)
Specified by:
handleError in interface IErrorHandler
See Also:
IErrorHandler.handleError(int, ISourcePosition, String, Object)

handleError

public void handleError(int type,
                        ISourcePosition position,
                        java.lang.String message)
Specified by:
handleError in interface IErrorHandler
See Also:
IErrorHandler.handleError(int, ISourcePosition, String)

handleError

public void handleError(int type,
                        java.lang.String message)
Specified by:
handleError in interface IErrorHandler
See Also:
IErrorHandler.handleError(int, String)

isVerbose

public boolean isVerbose()
Gets the verbose.

Specified by:
isVerbose in interface IRubyErrorHandler
Returns:
Returns a boolean

setVerbose

public void setVerbose(boolean verbose)
Sets the verbose.

Specified by:
setVerbose in interface IRubyErrorHandler
Parameters:
verbose - The verbose to set

warn

public void warn(java.lang.String message)
Specified by:
warn in interface IRubyErrorHandler
See Also:
IRubyErrorHandler.warn(String)

warning

public void warning(java.lang.String message)
Description copied from interface: IRubyErrorHandler
reports only if in verbose mode.

Specified by:
warning in interface IRubyErrorHandler
See Also:
IRubyErrorHandler.warning(String)


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.