Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Егор Галкин
DZ1_stl_streams
Commits
adebf8c9
Commit
adebf8c9
authored
4 years ago
by
Егор Галкин
Browse files
Options
Download
Patches
Plain Diff
Add new file
parent
ff677e9c
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Part 2/FileException.h
+17
-0
Part 2/FileException.h
with
17 additions
and
0 deletions
+17
-0
Part 2/FileException.h
0 → 100644
+
17
−
0
View file @
adebf8c9
#pragma once
#include
<string>
#include
<iostream>
using
namespace
std
;
class
FileException
:
public
exception
{
string
n_error
;
public:
FileException
(
string
&
error
)
{
n_error
=
error
;
}
const
char
*
what
()
const
noexcept
{
return
n_error
.
c_str
();
}
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets