コード例 #1
0
        /// <summary>
        /// An error in a text file
        /// </summary>
        /// <param name="line"></param>
        /// <param name="column"></param>
        /// <param name="message"></param>
        //public FbxException(int line, int column, string message) :
        //	base($"{message}, near line {line} column {column}")
        //{
        //}

        /// <summary>
        /// An error in a text file
        /// </summary>
        /// <param name="line"></param>
        /// <param name="column"></param>
        /// <param name="message"></param>
        public FbxException(FbxAsciiFileInfo fbxAsciiFileInfo, string message) :
            base($"{message}, near line {fbxAsciiFileInfo.Line} column {fbxAsciiFileInfo.Column}")
        {
        }
コード例 #2
0
ファイル: FbxAsciiReader.cs プロジェクト: orage/FBXSharpie
 /// <summary>
 /// Creates a new reader
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="errorLevel"></param>
 public FbxAsciiReader(Stream stream, ErrorLevel errorLevel = ErrorLevel.Checked)
 {
     _fbxAsciiFileInfo = new FbxAsciiFileInfo();
     _stream           = stream ?? throw new ArgumentNullException(nameof(stream));
     _errorLevel       = errorLevel;
 }
コード例 #3
0
ファイル: FbxAsciiReader.cs プロジェクト: UkooLabs/FBXSharpie
 /// <summary>
 /// Creates a new reader
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="errorLevel"></param>
 public FbxAsciiReader(Stream stream, ErrorLevel errorLevel = ErrorLevel.Checked)
 {
     _fbxAsciiFileInfo = new FbxAsciiFileInfo(stream ?? throw new ArgumentNullException(nameof(stream)));
     _errorLevel       = errorLevel;
     _tokenStack       = new Stack <Token>();
 }