コード例 #1
0
        public static SerializedException NewInstance(Exception e)
        {
            SerializedException exception = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <SerializedException
                                                                                           >();

            exception.Init(e);
            return(exception);
        }
コード例 #2
0
        private void Stringify(StringBuilder sb)
        {
            sb.Append(GetMessage()).Append("\n").Append(GetRemoteTrace());
            SerializedException cause = GetCause();

            if (cause != null)
            {
                sb.Append("Caused by: ");
                cause.Stringify(sb);
            }
        }