C# Class IronRuby.Runtime.RubyExceptions

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

Méthodes publiques

Méthode 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

Méthode Description
CreateMethodMissing ( string message ) : Exception
FormatMethodMissingMessage ( RubyContext context, object obj, string name, string message ) : string

Method Details

CannotConvertTypeToTargetType() public static méthode

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

CreateAllocatorUndefinedError() public static méthode

public static CreateAllocatorUndefinedError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
Résultat System.Exception

CreateArgumentError() public static méthode

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

CreateArgumentError() public static méthode

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

CreateArgumentError() public static méthode

public static CreateArgumentError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
Résultat System.Exception

CreateArgumentError() public static méthode

public static CreateArgumentError ( string message ) : Exception
message string
Résultat System.Exception

CreateEBADF() public static méthode

public static CreateEBADF ( ) : Exception
Résultat System.Exception

CreateEEXIST() public static méthode

public static CreateEEXIST ( ) : Exception
Résultat System.Exception

CreateEEXIST() public static méthode

public static CreateEEXIST ( Exception inner, string message ) : Exception
inner System.Exception
message string
Résultat System.Exception

CreateEEXIST() public static méthode

public static CreateEEXIST ( string message ) : Exception
message string
Résultat System.Exception

CreateEINVAL() public static méthode

public static CreateEINVAL ( ) : Exception
Résultat System.Exception

CreateEINVAL() public static méthode

public static CreateEINVAL ( Exception inner, string message ) : Exception
inner System.Exception
message string
Résultat System.Exception

CreateEINVAL() public static méthode

public static CreateEINVAL ( string message ) : Exception
message string
Résultat System.Exception

CreateENOENT() public static méthode

public static CreateENOENT ( ) : Exception
Résultat System.Exception

CreateENOENT() public static méthode

public static CreateENOENT ( Exception inner, string message ) : Exception
inner System.Exception
message string
Résultat System.Exception

CreateENOENT() public static méthode

public static CreateENOENT ( string message ) : Exception
message string
Résultat System.Exception

CreateEncodingCompatibilityError() public static méthode

public static CreateEncodingCompatibilityError ( IronRuby.Builtins.RubyEncoding encoding1, IronRuby.Builtins.RubyEncoding encoding2 ) : Exception
encoding1 IronRuby.Builtins.RubyEncoding
encoding2 IronRuby.Builtins.RubyEncoding
Résultat System.Exception

CreateIOError() public static méthode

public static CreateIOError ( string message ) : Exception
message string
Résultat System.Exception

CreateIndexError() public static méthode

public static CreateIndexError ( string message ) : Exception
message string
Résultat System.Exception

CreateLoadError() public static méthode

public static CreateLoadError ( Exception innerException ) : Exception
innerException System.Exception
Résultat System.Exception

CreateLoadError() public static méthode

public static CreateLoadError ( string message ) : Exception
message string
Résultat System.Exception

CreateLocalJumpError() public static méthode

public static CreateLocalJumpError ( string message ) : Exception
message string
Résultat System.Exception

CreateMethodMissing() public static méthode

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

CreateMissingDefaultConstructorError() public static méthode

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

CreateNameError() public static méthode

public static CreateNameError ( string message ) : Exception
message string
Résultat System.Exception

CreateNotClrTypeError() public static méthode

public static CreateNotClrTypeError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
Résultat System.Exception

CreateNotImplementedError() public static méthode

public static CreateNotImplementedError ( string message ) : Exception
message string
Résultat System.Exception

CreateObjectFrozenError() public static méthode

public static CreateObjectFrozenError ( ) : Exception
Résultat System.Exception

CreatePrivateMethodCalled() public static méthode

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

CreateProtectedMethodCalled() public static méthode

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

CreateRangeError() public static méthode

public static CreateRangeError ( string message ) : Exception
message string
Résultat System.Exception

CreateRangeError() public static méthode

public static CreateRangeError ( string paramName, string message ) : Exception
paramName string
message string
Résultat System.Exception

CreateReturnTypeError() public static méthode

public static CreateReturnTypeError ( string className, string methodName, string returnTypeName ) : Exception
className string
methodName string
returnTypeName string
Résultat System.Exception

CreateRuntimeError() public static méthode

public static CreateRuntimeError ( string message ) : Exception
message string
Résultat System.Exception

CreateSecurityError() public static méthode

public static CreateSecurityError ( string message ) : Exception
message string
Résultat System.Exception

CreateSystemCallError() public static méthode

public static CreateSystemCallError ( string message ) : Exception
message string
Résultat System.Exception

CreateTypeConversionError() public static méthode

public static CreateTypeConversionError ( string fromType, string toType ) : Exception
fromType string
toType string
Résultat System.Exception

CreateTypeError() public static méthode

public static CreateTypeError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
Résultat System.Exception

CreateTypeError() public static méthode

public static CreateTypeError ( string message ) : Exception
message string
Résultat System.Exception

CreateUndefinedMethodError() public static méthode

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

CreateUnexpectedTypeError() public static méthode

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

FormatMessage() public static méthode

public static FormatMessage ( string message ) : string
message string
Résultat string

FormatMethodMissingMessage() public static méthode

public static FormatMethodMissingMessage ( RubyContext context, object self, string name ) : string
context RubyContext
self object
name string
Résultat string

InvalidValueForType() public static méthode

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

MakeCoercionError() public static méthode

public static MakeCoercionError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
Résultat System.Exception

MakeComparisonError() public static méthode

public static MakeComparisonError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
Résultat System.Exception

MakeMessage() public static méthode

public static MakeMessage ( MutableString &message, string baseMessage ) : string
message MutableString
baseMessage string
Résultat string

MakeMessage() public static méthode

public static MakeMessage ( string message, string baseMessage ) : string
message string
baseMessage string
Résultat string

NoBlockGiven() public static méthode

public static NoBlockGiven ( ) : Exception
Résultat System.Exception