| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ArgumentError | Returns: the created exceptionthe current thread context context, String to be the message of the exception. Note that this message should
be properly formatted using RubyStringBuilder.str() or you
absolutely know it is clean ASCII-7BIT message)Return an instance of ArgumentError with the given message. |
| public static ArgumentError | Returns: the created exceptionthe current thread context context, int how many arguments we received got, int how many arguments we expect expected)Return an instance of ArgumentError for the given argument list length, min, and max. |
| public static ArgumentError | Returns: the created exceptionthe current thread context context, int the length of the given argument array length, int the minimum length required min, int the maximum length required max)Return an instance of ArgumentError for the given argument list length, min, and max. |
| public static TypeError | Returns: the created exceptionthe current thread context context, String to be the message of the exception. Note that this message should
be properly formatted using RubyStringBuilder.str() or you
absolutely know it is clean ASCII-7BIT message)Create an instance of TypeError with the given message. |
| public static String | Returns: the created exceptionthe current thread context context, IRubyObject which is the wrong type object, RubyModule the expected type that object should have been expectedType)Create a properly formatted error message for a typical TypeError. |
| public static EOFError | |
| public static RaiseException | |
| public static RaiseException | Returns: the errorthe current thread context context, IRubyObject which is the frozen object object, String to be displayed in the error message)Create a frozen error with a simple ASCII String. |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message)Create an index error with a simple ASCII String. |
| public static ArgumentError | |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message, String involved in the error name)Create a name error with a simple ASCII String and the failing name. |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message, IRubyObject involved in the error name)Create a name error with a simple ASCII String and the failing name. |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message, String involved in the error name, Throwable the exception which caused this name error throwable)Create a name error with a simple ASCII String and the failing name. |
| public static NotImplementedError | |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message)Create a range error with a simple ASCII String. |
| public static RaiseException | Returns: the errorthe current thread context context, String to be displayed in the error message)Create a runtime error with a simple ASCII String. |
| public static Exception | |
| public static TypeError | typeError(ThreadContext
the current thread context context, IRubyObject which is the wrong type object, String the expected type(s) that object should have been expectedType)Create a TypeError with the given message. |
| public static TypeError | typeError(ThreadContext
the current thread context context, String the start of the message startOfMessage, IRubyObject which is the wrong type object, String the rest of the message restOfMessage)Create a TypeError with the given message. |
| public static TypeError | typeError(ThreadContext
the current thread context context, IRubyObject which is the wrong type object, RubyModule the expected type that object should have been expectedType)Create a TypeError with the given message. |
| public static TypeError | typeError(ThreadContext
the current thread context context, String to be the message of the exception. Note that this message should
be properly formatted using RubyStringBuilder.str() or you
absolutely know it is clean ASCII-7BIT message)Create a TypeError with the given message. |
| private static IRubyObject | |
| public static RaiseException | Returns: the error with the exception attachedthe error to attach the exception to error, Exception the exception to attach exception)Attach an exception to an error.R |
| public static RaiseException | zeroDivisionError(ThreadContext
the current thread context context)Create a TypeError with the given message. |
| Error | back to summary |
|---|---|
| public Error() | |
| argumentError | back to summary |
|---|---|
| public static ArgumentError argumentError(ThreadContext context, String message) Return an instance of ArgumentError with the given message.
| |
| argumentError | back to summary |
|---|---|
| public static ArgumentError argumentError(ThreadContext context, int got, int expected) Return an instance of ArgumentError for the given argument list length, min, and max.
| |
| argumentError | back to summary |
|---|---|
| public static ArgumentError argumentError(ThreadContext context, int length, int min, int max) Return an instance of ArgumentError for the given argument list length, min, and max.
| |
| createTypeError | back to summary |
|---|---|
| public static TypeError createTypeError(ThreadContext context, String message) Create an instance of TypeError with the given message.
| |
| createTypeErrorMessage | back to summary |
|---|---|
| public static String createTypeErrorMessage(ThreadContext context, IRubyObject object, RubyModule expectedType) Create a properly formatted error message for a typical TypeError.
| |
| eofError | back to summary |
|---|---|
| public static EOFError eofError(ThreadContext context, String message) | |
| floatDomainError | back to summary |
|---|---|
| public static RaiseException floatDomainError(ThreadContext context, String message) | |
| frozenError | back to summary |
|---|---|
| public static RaiseException frozenError(ThreadContext context, IRubyObject object, String message) Create a frozen error with a simple ASCII String.
| |
| indexError | back to summary |
|---|---|
| public static RaiseException indexError(ThreadContext context, String message) Create an index error with a simple ASCII String.
| |
| keywordError | back to summary |
|---|---|
| public static ArgumentError keywordError(ThreadContext context, String error, RubyArray<T extends IRubyObject> keys) | |
| nameError | back to summary |
|---|---|
| public static RaiseException nameError(ThreadContext context, String message, String name) Create a name error with a simple ASCII String and the failing name.
| |
| nameError | back to summary |
|---|---|
| public static RaiseException nameError(ThreadContext context, String message, IRubyObject name) Create a name error with a simple ASCII String and the failing name.
| |
| nameError | back to summary |
|---|---|
| public static RaiseException nameError(ThreadContext context, String message, String name, Throwable throwable) Create a name error with a simple ASCII String and the failing name.
| |
| notImplementedError | back to summary |
|---|---|
| public static NotImplementedError notImplementedError(ThreadContext context, String message) | |
| rangeError | back to summary |
|---|---|
| public static RaiseException rangeError(ThreadContext context, String message) Create a range error with a simple ASCII String.
| |
| runtimeError | back to summary |
|---|---|
| public static RaiseException runtimeError(ThreadContext context, String message) Create a runtime error with a simple ASCII String.
| |
| toRubyException | back to summary |
|---|---|
| public static Exception toRubyException(ThreadContext context, IOException ioe) | |
| typeError | back to summary |
|---|---|
| public static TypeError typeError(ThreadContext context, IRubyObject object, String expectedType) Create a TypeError with the given message.
| |
| typeError | back to summary |
|---|---|
| public static TypeError typeError(ThreadContext context, String startOfMessage, IRubyObject object, String restOfMessage) Create a TypeError with the given message.
| |
| typeError | back to summary |
|---|---|
| public static TypeError typeError(ThreadContext context, IRubyObject object, RubyModule expectedType) Create a TypeError with the given message.
| |
| typeError | back to summary |
|---|---|
| public static TypeError typeError(ThreadContext context, String message) Create a TypeError with the given message.
| |
| typeFor | back to summary |
|---|---|
| private static IRubyObject typeFor(Ruby runtime, IRubyObject object) | |
| withException | back to summary |
|---|---|
| public static RaiseException withException(RaiseException error, Exception exception) Attach an exception to an error.R
| |
| zeroDivisionError | back to summary |
|---|---|
| public static RaiseException zeroDivisionError(ThreadContext context) Create a TypeError with the given message.
| |