MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
exceptions.h
1/* exceptions.h: -*- C++ -*-
2
3 Copyright (C) 2001-2019 Christian Schenk
4
5 This file is part of MiKTeX Package Manager.
6
7 MiKTeX Package Manager is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 MiKTeX Package Manager is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with MiKTeX Package Manager; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#if !defined(D32CB6D8FBC5418A94C5064391B8D7AC)
23#define D32CB6D8FBC5418A94C5064391B8D7AC
24
25#include <string>
26
27#include <miktex/Core/Exceptions>
28
29#include "text.h"
30
31MPM_INTERNAL_BEGIN_NAMESPACE;
32
33class NotFoundException :
34 public MiKTeX::Core::MiKTeXException
35{
36public:
37 NotFoundException() :
38 MiKTeX::Core::MiKTeXException(T_("Requested resource not found."))
39 {
40 }
41
42public:
43 NotFoundException(const std::string& url) :
44 MiKTeX::Core::MiKTeXException("", T_("Requested resource not found."), { "url", url }, MiKTeX::Core::SourceLocation())
45 {
46 }
47
48public:
49 NotFoundException(const std::string& programInvocationName, const std::string& message, const MiKTeX::Core::MiKTeXException::KVMAP& info, const MiKTeX::Core::SourceLocation& sourceLocation) :
50 MiKTeX::Core::MiKTeXException(programInvocationName, message, info, sourceLocation)
51 {
52 }
53};
54
55MPM_INTERNAL_END_NAMESPACE;
56
57#endif
Definition Exceptions.h:38