summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/io/stream_reader.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/io/stream_reader.h b/include/io/stream_reader.h
index 056d14e9dd..7d97824927 100644
--- a/include/io/stream_reader.h
+++ b/include/io/stream_reader.h
@@ -31,18 +31,18 @@ namespace nbt
namespace io
{
+///Exception that gets thrown when reading is not successful
+class input_error : public std::runtime_error
+{
+ using std::runtime_error::runtime_error;
+};
+
/**
* @brief Helper class for reading NBT tags from input streams
*/
class stream_reader
{
public:
- ///Exception that gets thrown when reading is not successful
- class input_error : public std::runtime_error
- {
- using std::runtime_error::runtime_error;
- };
-
/**
* @param is the stream to read from
* @param e the byte order of the source data. The Java edition