Import dotnetDBF for error handling.
This commit is contained in:
62
dotnetdbf/DBFException.cs
Normal file
62
dotnetdbf/DBFException.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
DBFException
|
||||
Represents exceptions happen in the JAvaDBF classes.
|
||||
|
||||
This file is part of DotNetDBF packege.
|
||||
|
||||
original author (javadbf): anil@linuxense.com 2004/03/31
|
||||
license: LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||
|
||||
ported to C# (DotNetDBF): Jay Tuley <jay+dotnetdbf@tuley.name> 6/28/2007
|
||||
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace DotNetDBF
|
||||
{
|
||||
public class DBTException : DBFException
|
||||
{
|
||||
|
||||
public DBTException(string msg) : base(msg)
|
||||
{
|
||||
}
|
||||
|
||||
public DBTException(string msg, Exception internalException)
|
||||
: base(msg, internalException)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DBFRecordException : DBFException
|
||||
{
|
||||
public int Record { get; }
|
||||
|
||||
public DBFRecordException(string msg, int record) : base(msg)
|
||||
{
|
||||
Record = record;
|
||||
}
|
||||
|
||||
public DBFRecordException(string msg, Exception internalException)
|
||||
: base(msg, internalException)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DBFException : IOException
|
||||
{
|
||||
public DBFException() : base()
|
||||
{
|
||||
}
|
||||
|
||||
public DBFException(string msg) : base(msg)
|
||||
{
|
||||
}
|
||||
|
||||
public DBFException(string msg, Exception internalException)
|
||||
: base(msg, internalException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user