• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 5111374265

29 May 2023 11:19AM UTC coverage: 92.227% (+0.5%) from 91.723%
5111374265

push

github

randombit
Next release will be 3.1.0. Update release notes

75588 of 81959 relevant lines covered (92.23%)

11886470.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/cli/cli_exceptions.h
1
/*
2
* (C) 2015 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6

7
#ifndef BOTAN_CLI_EXCEPTIONS_H_
8
#define BOTAN_CLI_EXCEPTIONS_H_
9

10
#include <stdexcept>
11
#include <string>
12

13
namespace Botan_CLI {
14

15
class CLI_Error : public std::runtime_error {
16
   public:
17
      explicit CLI_Error(const std::string& s) : std::runtime_error(s) {}
5✔
18
};
19

20
class CLI_IO_Error final : public CLI_Error {
21
   public:
22
      CLI_IO_Error(const std::string& op, const std::string& who) : CLI_Error("Error " + op + " " + who) {}
6✔
23
};
24

25
class CLI_Usage_Error final : public CLI_Error {
26
   public:
27
      explicit CLI_Usage_Error(const std::string& what) : CLI_Error(what) {}
3✔
28
};
29

30
/* Thrown eg when a requested feature was compiled out of the library
31
   or is not available, eg hashing with MD2
32
*/
33
class CLI_Error_Unsupported final : public CLI_Error {
34
   public:
35
      CLI_Error_Unsupported(const std::string& msg) : CLI_Error(msg) {}
×
36

37
      CLI_Error_Unsupported(const std::string& what, const std::string& who) :
×
38
            CLI_Error(what + " with '" + who + "' unsupported or not available") {}
×
39
};
40

41
}  // namespace Botan_CLI
42

43
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc