2008-07-11 23:47:33 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2009-04-13 20:29:41 +04:00
|
|
|
* vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-07-11 23:47:33 +04:00
|
|
|
|
2010-06-01 16:38:00 +04:00
|
|
|
#ifndef mozStorageError_h
|
|
|
|
#define mozStorageError_h
|
2008-07-11 23:47:33 +04:00
|
|
|
|
|
|
|
#include "mozIStorageError.h"
|
|
|
|
#include "nsString.h"
|
2012-06-13 07:35:10 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2008-07-11 23:47:33 +04:00
|
|
|
|
2009-05-09 04:29:55 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace storage {
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class Error final : public mozIStorageError {
|
2008-07-11 23:47:33 +04:00
|
|
|
public:
|
2013-07-19 06:24:15 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2008-07-11 23:47:33 +04:00
|
|
|
NS_DECL_MOZISTORAGEERROR
|
|
|
|
|
2019-05-01 11:47:10 +03:00
|
|
|
Error(int aResult, const char* aMessage);
|
2008-07-11 23:47:33 +04:00
|
|
|
|
|
|
|
private:
|
2014-06-24 02:40:03 +04:00
|
|
|
~Error() {}
|
|
|
|
|
2008-07-11 23:47:33 +04:00
|
|
|
int mResult;
|
|
|
|
nsCString mMessage;
|
|
|
|
};
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace storage
|
2009-05-09 04:29:55 +04:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-06-01 16:38:00 +04:00
|
|
|
#endif // mozStorageError_h
|