C# Класс IronRuby.Runtime.RubyExceptions

Helper class for creating the corresponding .NET exceptions from the Ruby error names
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CreateMethodMissing ( string message ) : Exception
FormatMethodMissingMessage ( RubyContext context, object obj, string name, string message ) : string

Описание методов

CannotConvertTypeToTargetType() публичный статический Метод

public static CannotConvertTypeToTargetType ( RubyContext context, object param, string toType ) : Exception
context RubyContext
param object
toType string
Результат System.Exception

CreateAllocatorUndefinedError() публичный статический Метод

public static CreateAllocatorUndefinedError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
Результат System.Exception

CreateArgumentError() публичный статический Метод

public static CreateArgumentError ( DecoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
e System.Text.DecoderFallbackException
encoding IronRuby.Builtins.RubyEncoding
Результат System.Exception

CreateArgumentError() публичный статический Метод

public static CreateArgumentError ( EncoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
e System.Text.EncoderFallbackException
encoding IronRuby.Builtins.RubyEncoding
Результат System.Exception

CreateArgumentError() публичный статический Метод

public static CreateArgumentError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
Результат System.Exception

CreateArgumentError() публичный статический Метод

public static CreateArgumentError ( string message ) : Exception
message string
Результат System.Exception

CreateEBADF() публичный статический Метод

public static CreateEBADF ( ) : Exception
Результат System.Exception

CreateEEXIST() публичный статический Метод

public static CreateEEXIST ( ) : Exception
Результат System.Exception

CreateEEXIST() публичный статический Метод

public static CreateEEXIST ( Exception inner, string message ) : Exception
inner System.Exception
message string
Результат System.Exception

CreateEEXIST() публичный статический Метод

public static CreateEEXIST ( string message ) : Exception
message string
Результат System.Exception

CreateEINVAL() публичный статический Метод

public static CreateEINVAL ( ) : Exception
Результат System.Exception

CreateEINVAL() публичный статический Метод

public static CreateEINVAL ( Exception inner, string message ) : Exception
inner System.Exception
message string
Результат System.Exception

CreateEINVAL() публичный статический Метод

public static CreateEINVAL ( string message ) : Exception
message string
Результат System.Exception

CreateENOENT() публичный статический Метод

public static CreateENOENT ( ) : Exception
Результат System.Exception

CreateENOENT() публичный статический Метод

public static CreateENOENT ( Exception inner, string message ) : Exception
inner System.Exception
message string
Результат System.Exception

CreateENOENT() публичный статический Метод

public static CreateENOENT ( string message ) : Exception
message string
Результат System.Exception

CreateEncodingCompatibilityError() публичный статический Метод

public static CreateEncodingCompatibilityError ( IronRuby.Builtins.RubyEncoding encoding1, IronRuby.Builtins.RubyEncoding encoding2 ) : Exception
encoding1 IronRuby.Builtins.RubyEncoding
encoding2 IronRuby.Builtins.RubyEncoding
Результат System.Exception

CreateIOError() публичный статический Метод

public static CreateIOError ( string message ) : Exception
message string
Результат System.Exception

CreateIndexError() публичный статический Метод

public static CreateIndexError ( string message ) : Exception
message string
Результат System.Exception

CreateLoadError() публичный статический Метод

public static CreateLoadError ( Exception innerException ) : Exception
innerException System.Exception
Результат System.Exception

CreateLoadError() публичный статический Метод

public static CreateLoadError ( string message ) : Exception
message string
Результат System.Exception

CreateLocalJumpError() публичный статический Метод

public static CreateLocalJumpError ( string message ) : Exception
message string
Результат System.Exception

CreateMethodMissing() публичный статический Метод

public static CreateMethodMissing ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
Результат System.Exception

CreateMissingDefaultConstructorError() публичный статический Метод

public static CreateMissingDefaultConstructorError ( RubyClass rubyClass, string initializerOwnerName ) : Exception
rubyClass IronRuby.Builtins.RubyClass
initializerOwnerName string
Результат System.Exception

CreateNameError() публичный статический Метод

public static CreateNameError ( string message ) : Exception
message string
Результат System.Exception

CreateNotClrTypeError() публичный статический Метод

public static CreateNotClrTypeError ( RubyClass rubyClass ) : Exception
rubyClass IronRuby.Builtins.RubyClass
Результат System.Exception

CreateNotImplementedError() публичный статический Метод

public static CreateNotImplementedError ( string message ) : Exception
message string
Результат System.Exception

CreateObjectFrozenError() публичный статический Метод

public static CreateObjectFrozenError ( ) : Exception
Результат System.Exception

CreatePrivateMethodCalled() публичный статический Метод

public static CreatePrivateMethodCalled ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
Результат System.Exception

CreateProtectedMethodCalled() публичный статический Метод

public static CreateProtectedMethodCalled ( RubyContext context, object self, string name ) : Exception
context RubyContext
self object
name string
Результат System.Exception

CreateRangeError() публичный статический Метод

public static CreateRangeError ( string message ) : Exception
message string
Результат System.Exception

CreateRangeError() публичный статический Метод

public static CreateRangeError ( string paramName, string message ) : Exception
paramName string
message string
Результат System.Exception

CreateReturnTypeError() публичный статический Метод

public static CreateReturnTypeError ( string className, string methodName, string returnTypeName ) : Exception
className string
methodName string
returnTypeName string
Результат System.Exception

CreateRuntimeError() публичный статический Метод

public static CreateRuntimeError ( string message ) : Exception
message string
Результат System.Exception

CreateSecurityError() публичный статический Метод

public static CreateSecurityError ( string message ) : Exception
message string
Результат System.Exception

CreateSystemCallError() публичный статический Метод

public static CreateSystemCallError ( string message ) : Exception
message string
Результат System.Exception

CreateTypeConversionError() публичный статический Метод

public static CreateTypeConversionError ( string fromType, string toType ) : Exception
fromType string
toType string
Результат System.Exception

CreateTypeError() публичный статический Метод

public static CreateTypeError ( Exception innerException, string message ) : Exception
innerException System.Exception
message string
Результат System.Exception

CreateTypeError() публичный статический Метод

public static CreateTypeError ( string message ) : Exception
message string
Результат System.Exception

CreateUndefinedMethodError() публичный статический Метод

public static CreateUndefinedMethodError ( RubyModule module, string methodName ) : Exception
module IronRuby.Builtins.RubyModule
methodName string
Результат System.Exception

CreateUnexpectedTypeError() публичный статический Метод

public static CreateUnexpectedTypeError ( RubyContext context, object param, string type ) : Exception
context RubyContext
param object
type string
Результат System.Exception

FormatMessage() публичный статический Метод

public static FormatMessage ( string message ) : string
message string
Результат string

FormatMethodMissingMessage() публичный статический Метод

public static FormatMethodMissingMessage ( RubyContext context, object self, string name ) : string
context RubyContext
self object
name string
Результат string

InvalidValueForType() публичный статический Метод

public static InvalidValueForType ( RubyContext context, object obj, string type ) : Exception
context RubyContext
obj object
type string
Результат System.Exception

MakeCoercionError() публичный статический Метод

public static MakeCoercionError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
Результат System.Exception

MakeComparisonError() публичный статический Метод

public static MakeComparisonError ( RubyContext context, object self, object other ) : Exception
context RubyContext
self object
other object
Результат System.Exception

MakeMessage() публичный статический Метод

public static MakeMessage ( MutableString &message, string baseMessage ) : string
message MutableString
baseMessage string
Результат string

MakeMessage() публичный статический Метод

public static MakeMessage ( string message, string baseMessage ) : string
message string
baseMessage string
Результат string

NoBlockGiven() публичный статический Метод

public static NoBlockGiven ( ) : Exception
Результат System.Exception