CreateArgumentError() 공개 정적인 메소드

public static CreateArgumentError ( DecoderFallbackException e, IronRuby.Builtins.RubyEncoding encoding ) : Exception
e System.Text.DecoderFallbackException
encoding IronRuby.Builtins.RubyEncoding
리턴 System.Exception
예제 #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)));
 }
예제 #2
0
 public static Exception /*!*/ CreateArgumentError(EncoderFallbackException /*!*/ e, RubyEncoding /*!*/ encoding)
 {
     return(RubyExceptions.CreateArgumentError(String.Format("character U+{0:X4} can't be encoded in {1}",
                                                             e.CharUnknownHigh != '\0' ? Tokenizer.ToCodePoint(e.CharUnknownHigh, e.CharUnknownLow) : (int)e.CharUnknown, encoding)));
 }