OSDN Git Service

SVNから移行
[nmecab/NMeCabRepo2.git] / src / LibNMeCab / MeCabInvalidFileException.cs
1 //  MeCab -- Yet Another Part-of-Speech and Morphological Analyzer
2 //
3 //  Copyright(C) 2001-2006 Taku Kudo <taku@chasen.org>
4 //  Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
5 using System;
6 using System.Collections.Generic;
7 using System.Text;
8
9 namespace NMeCab
10 {
11     public class MeCabInvalidFileException : MeCabException
12     {
13         public string FileName { get; private set; }
14
15         public override string Message
16         {
17             get
18             {
19                 StringBuilder os = new StringBuilder();
20                 os.Append(base.Message);
21                 if (this.FileName != null) os.AppendFormat("[FileName:{0}]", this.FileName);
22                 return os.ToString();
23             }
24         }
25
26         public MeCabInvalidFileException(string message, string fileName)
27             : base(message)
28         {
29             this.FileName = fileName;
30         }
31     }
32 }