"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorProvider = exports.NetworkError = exports.ValidationError = exports.BaseError = void 0;
class BaseError extends Error {
    constructor(message, code) {
        super(message);
        this.code = code;
        this.name = this.constructor.name;
    }
}
exports.BaseError = BaseError;
class ValidationError extends BaseError {
}
exports.ValidationError = ValidationError;
class NetworkError extends BaseError {
}
exports.NetworkError = NetworkError;
const ErrorProvider = ({ children }) => children;
exports.ErrorProvider = ErrorProvider;
exports.default = BaseError;
//# sourceMappingURL=errors.js.map