Example #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}")
        {
        }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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>();
 }