62 lines
1.3 KiB
C#
62 lines
1.3 KiB
C#
/*
|
|
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)
|
|
{
|
|
}
|
|
}
|
|
} |