C# Class IronRuby.Runtime.RubyExceptions

Helper class for creating the corresponding .NET exceptions from the Ruby error names
Exibir arquivo Open project: ExpertsInside/IronSP Class Usage Examples

Public Methods

Method Description
CannotConvertTypeToTargetType ( RubyContext context, object param, string toType ) : Exception
CreateAllocatorUndefinedError ( RubyClass rubyClass ) : Exception
CreateArgumentError ( DecoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
CreateArgumentError ( EncoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
CreateArgumentError ( Exception innerException, string message ) : Exception
CreateArgumentError ( string message ) : Exception
CreateEBADF ( ) : Exception
CreateEEXIST ( ) : Exception
CreateEEXIST ( Exception inner, string message ) : Exception
CreateEEXIST ( string message ) : Exception
CreateEINVAL ( ) : Exception
CreateEINVAL ( Exception inner, string message ) : Exception
CreateEINVAL ( string message ) : Exception
CreateENOENT ( ) : Exception
CreateENOENT ( Exception inner, string message ) : Exception
CreateENOENT ( string message ) : Exception
CreateEncodingCompatibilityError ( IronRuby.Builtins.RubyEncoding encoding1, IronRuby.Builtins.RubyEncoding encoding2 ) : Exception
CreateIOError ( string message ) : Exception
CreateIndexError ( string message ) : Exception
CreateLoadError ( Exception innerException ) : Exception
CreateLoadError ( string message ) : Exception
CreateLocalJumpError ( string message ) : Exception
CreateMethodMissing ( RubyContext context, object self, string name ) : Exception
CreateMissingDefaultConstructorError ( RubyClass rubyClass, string initializerOwnerName ) : Exception
CreateNameError ( string message ) : Exception
CreateNotClrTypeError ( RubyClass rubyClass ) : Exception
CreateNotImplementedError ( string message ) : Exception
CreateObjectFrozenError ( ) : Exception
CreatePrivateMethodCalled ( RubyContext context, object self, string name ) : Exception
CreateProtectedMethodCalled ( RubyContext context, object self, string name ) : Exception
CreateRangeError ( string message ) : Exception
CreateRangeError ( string paramName, string message ) : Exception
CreateReturnTypeError ( string className, string methodName, string returnTypeName ) : Exception
CreateRuntimeError ( string message ) : Exception
CreateSecurityError ( string message ) : Exception
CreateSystemCallError ( string message ) : Exception
CreateTypeConversionError ( string fromType, string toType ) : Exception
CreateTypeError ( Exception innerException, string message ) : Exception
CreateTypeError ( string message ) : Exception
CreateUndefinedMethodError ( RubyModule module, string methodName ) : Exception
CreateUnexpectedTypeError ( RubyContext context, object param, string type ) : Exception
FormatMessage ( string message ) : string
FormatMethodMissingMessage ( RubyContext context, object self, string name ) : string
InvalidValueForType ( RubyContext context, object obj, string type ) : Exception
MakeCoercionError ( RubyContext context, object self, object other ) : Exception
MakeComparisonError ( RubyContext context, object self, object other ) : Exception
MakeMessage ( MutableString &message, string baseMessage ) : string
MakeMessage ( string message, string baseMessage ) : string
NoBlockGiven ( ) : Exception

Private Methods

Method Description
CreateMethodMissing ( string message ) : Exception
FormatMethodMissingMessage ( RubyContext context, object obj, string name, string message ) : string

Method Details

CannotConvertTypeToTargetType() public static method

public static CannotConvertTypeToTargetType ( RubyContext context, object param, string toType ) : Exception
context RubyContext
param object
toType string
return System.Exception

CreateAllocatorUndefinedError() public static method

public static CreateAllocatorUndefinedError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
return System.Exception

CreateArgumentError() public static method

public static CreateArgumentError ( DecoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
e System.Text.DecoderFallbackException
encoding IronRuby.Builtins.RubyEncoding
return System.Exception

CreateArgumentError() public static method

public static CreateArgumentError ( EncoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
e System.Text.EncoderFallbackException
encoding IronRuby.Builtins.RubyEncoding
return System.Exception

CreateArgumentError() public static method

public static CreateArgumentError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
return System.Exception

CreateArgumentError() public static method

public static CreateArgumentError ( string message ) : Exception
message string
return System.Exception

CreateEBADF() public static method

public static CreateEBADF ( ) : Exception
return System.Exception

CreateEEXIST() public static method

public static CreateEEXIST ( ) : Exception
return System.Exception

CreateEEXIST() public static method

public static CreateEEXIST ( Exception inner, string message ) : Exception
inner System.Exception
message string
return System.Exception

CreateEEXIST() public static method

public static CreateEEXIST ( string message ) : Exception
message string
return System.Exception

CreateEINVAL() public static method

public static CreateEINVAL ( ) : Exception
return System.Exception

CreateEINVAL() public static method

public static CreateEINVAL ( Exception inner, string message ) : Exception
inner System.Exception
message string
return System.Exception

CreateEINVAL() public static method

public static CreateEINVAL ( string message ) : Exception
message string
return System.Exception

CreateENOENT() public static method

public static CreateENOENT ( ) : Exception
return System.Exception

CreateENOENT() public static method

public static CreateENOENT ( Exception inner, string message ) : Exception
inner System.Exception
message string
return System.Exception

CreateENOENT() public static method

public static CreateENOENT ( string message ) : Exception
message string
return System.Exception

CreateEncodingCompatibilityError() public static method

public static CreateEncodingCompatibilityError ( IronRuby.Builtins.RubyEncoding encoding1, IronRuby.Builtins.RubyEncoding encoding2 ) : Exception
encoding1 IronRuby.Builtins.RubyEncoding
encoding2 IronRuby.Builtins.RubyEncoding
return System.Exception

CreateIOError() public static method

public static CreateIOError ( string message ) : Exception
message string
return System.Exception

CreateIndexError() public static method

public static CreateIndexError ( string message ) : Exception
message string
return System.Exception

CreateLoadError() public static method

public static CreateLoadError ( Exception innerException ) : Exception
innerException System.Exception
return System.Exception

CreateLoadError() public static method

public static CreateLoadError ( string message ) : Exception
message string
return System.Exception

CreateLocalJumpError() public static method

public static CreateLocalJumpError ( string message ) : Exception
message string
return System.Exception

CreateMethodMissing() public static method

public static CreateMethodMissing ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
return System.Exception

CreateMissingDefaultConstructorError() public static method

public static CreateMissingDefaultConstructorError ( RubyClass rubyClass, string initializerOwnerName ) : Exception
rubyClass IronRuby.Builtins.RubyClass
initializerOwnerName string
return System.Exception

CreateNameError() public static method

public static CreateNameError ( string message ) : Exception
message string
return System.Exception

CreateNotClrTypeError() public static method

public static CreateNotClrTypeError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
return System.Exception

CreateNotImplementedError() public static method

public static CreateNotImplementedError ( string message ) : Exception
message string
return System.Exception

CreateObjectFrozenError() public static method

public static CreateObjectFrozenError ( ) : Exception
return System.Exception

CreatePrivateMethodCalled() public static method

public static CreatePrivateMethodCalled ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
return System.Exception

CreateProtectedMethodCalled() public static method

public static CreateProtectedMethodCalled ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
return System.Exception

CreateRangeError() public static method

public static CreateRangeError ( string message ) : Exception
message string
return System.Exception

CreateRangeError() public static method

public static CreateRangeError ( string paramName, string message ) : Exception
paramName string
message string
return System.Exception

CreateReturnTypeError() public static method

public static CreateReturnTypeError ( string className, string methodName, string returnTypeName ) : Exception
className string
methodName string
returnTypeName string
return System.Exception

CreateRuntimeError() public static method

public static CreateRuntimeError ( string message ) : Exception
message string
return System.Exception

CreateSecurityError() public static method

public static CreateSecurityError ( string message ) : Exception
message string
return System.Exception

CreateSystemCallError() public static method

public static CreateSystemCallError ( string message ) : Exception
message string
return System.Exception

CreateTypeConversionError() public static method

public static CreateTypeConversionError ( string fromType, string toType ) : Exception
fromType string
toType string
return System.Exception

CreateTypeError() public static method

public static CreateTypeError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
return System.Exception

CreateTypeError() public static method

public static CreateTypeError ( string message ) : Exception
message string
return System.Exception

CreateUndefinedMethodError() public static method

public static CreateUndefinedMethodError ( RubyModule module, string methodName ) : Exception
module IronRuby.Builtins.RubyModule
methodName string
return System.Exception

CreateUnexpectedTypeError() public static method

public static CreateUnexpectedTypeError ( RubyContext context, object param, string type ) : Exception
context RubyContext
param object
type string
return System.Exception

FormatMessage() public static method

public static FormatMessage ( string message ) : string
message string
return string

FormatMethodMissingMessage() public static method

public static FormatMethodMissingMessage ( RubyContext context, object self, string name ) : string
context RubyContext
self object
name string
return string

InvalidValueForType() public static method

public static InvalidValueForType ( RubyContext context, object obj, string type ) : Exception
context RubyContext
obj object
type string
return System.Exception

MakeCoercionError() public static method

public static MakeCoercionError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
return System.Exception

MakeComparisonError() public static method

public static MakeComparisonError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
return System.Exception

MakeMessage() public static method

public static MakeMessage ( MutableString &message, string baseMessage ) : string
message MutableString
baseMessage string
return string

MakeMessage() public static method

public static MakeMessage ( string message, string baseMessage ) : string
message string
baseMessage string
return string

NoBlockGiven() public static method

public static NoBlockGiven ( ) : Exception
return System.Exception