PStack  2.0
Stack trace printer for MSVC and GCC binaries
ui_exception.hpp
Go to the documentation of this file.
1 // ===-- include/psystem/exception/ui_exception.hpp ------- -*- C++ -*- --=== //
2 // Copyright (c) 2014 Matt Bisson. All rights reserved.
3 
18 #pragma once
19 #ifndef PSYSTEM_EXCEPTION_UI_EXCEPTION_HPP
20 #define PSYSTEM_EXCEPTION_UI_EXCEPTION_HPP
21 
22 #include "base_exception.hpp"
23 
24 namespace psystem {
25 namespace exception {
26 
42 {
46 public:
57  template <typename... MessageArgs>
59  std::string const& file,
60  std::string const& function,
61  uint32_t line,
62  MessageArgs&&... message) noexcept
64  file, function, line, std::forward<MessageArgs>(message)...)
65  { }
66 };
67 
68 } // namespace exception
69 } // namespace psystem
70 
71 #endif // PSYSTEM_EXCEPTION_UI_EXCEPTION_HPP
ui_exception(std::string const &file, std::string const &function, uint32_t line, MessageArgs &&...message) noexcept
Construct an exception instance with a formatted message.
Definition: ui_exception.hpp:58
Definition: shared_handle.hpp:782
Base exception class from which all PSystem exceptions must inherit.
Definition: base_exception.hpp:73
#define noexcept
Replace keyword with something useful.
Definition: platform.hpp:71
Declares the root of the exception class hierarchy for PSystem.
Contains the process examination "system" and basic frameworks.
Definition: pstack_event_handler.hpp:28
std::string const & function() const noexcept
Return the function where the exception occurred.
Definition: base_exception.cpp:55
An exception class to present unexpected user input as errors.
Definition: ui_exception.hpp:40