IronRuby.Runtime.RubyExceptions.CreateArgumentError C# (CSharp) Method

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
        public static Exception/*!*/ CreateArgumentError(DecoderFallbackException/*!*/ e, RubyEncoding/*!*/ encoding) {
            return RubyExceptions.CreateArgumentError(String.Format("invalid byte sequence {0} in {1}",
                BitConverter.ToString(e.BytesUnknown), encoding));
        }

Same methods

RubyExceptions::CreateArgumentError ( EncoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
RubyExceptions::CreateArgumentError ( Exception innerException, string message ) : Exception
RubyExceptions::CreateArgumentError ( string message ) : Exception

Usage Example

Example #1
0
 public static Exception /*!*/ CreateArgumentError(DecoderFallbackException /*!*/ e, RubyEncoding /*!*/ encoding)
 {
     return(RubyExceptions.CreateArgumentError(String.Format("invalid byte sequence {0} in {1}",
                                                             BitConverter.ToString(e.BytesUnknown), encoding)));
 }
All Usage Examples Of IronRuby.Runtime.RubyExceptions::CreateArgumentError