16
|
1 // This file (UnsupportedFileTypeException.cs) is a part of the IBBoard library and is copyright 2009 IBBoard.
|
|
2 //
|
|
3 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
|
|
4
|
37
|
5 using System;
|
|
6
|
|
7 namespace IBBoard.IO
|
|
8 {
|
|
9 /// <summary>
|
|
10 /// Summary description for UnsupportedFileTypeException.
|
|
11 /// </summary>
|
|
12 public class UnsupportedFileTypeException : Exception
|
|
13 {
|
|
14 public UnsupportedFileTypeException(): base("Operation attempted on an unsupported file type")
|
|
15 {
|
|
16 }
|
|
17
|
|
18 public UnsupportedFileTypeException(string fileType):base("Operation attempted on an unsupported file type ("+fileType+")")
|
|
19 {
|
|
20 }
|
|
21
|
|
22 public UnsupportedFileTypeException(string fileType, string operation):base("Operation "+operation+" does not support file type "+fileType)
|
|
23 {
|
|
24 }
|
|
25 }
|
|
26 }
|