Adroit.Data.BDB46.CheckError C# (CSharp) Method

CheckError() static private method

static private CheckError ( int error ) : void
error int
return void
		static void CheckError(int error) {
			if (error == 0)
				return;

			string message = Marshal.PtrToStringAnsi(db_strerror(error));
			Log.WarningFormat ("{0} Error({1})", message, error);

			throw new DatabaseException(message);
		}