DAW JSON Link
daw_json_parse_policy_error.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "daw_json_assert.h"
4 
5 namespace daw::json {
7  [[noreturn]] static void handle_error( ErrorType err,
8  std::string_view data ) {
9  throw json_exception( data, err );
10  }
11  };
12 
14  [[noreturn]] static void handle_error( ErrorType, std::string_view ) {
15  std::abort( );
16  }
17  };
18 
19 } // namespace daw::json
daw::json::abort_on_error_parse_policy
Definition: daw_json_parse_policy_error.h:13
daw::json
Definition: daw_json_event_parser.h:11
daw::json::throw_on_error_parse_policy::handle_error
static void handle_error(ErrorType err, std::string_view data)
Definition: daw_json_parse_policy_error.h:7
daw::json::abort_on_error_parse_policy::handle_error
static void handle_error(ErrorType, std::string_view)
Definition: daw_json_parse_policy_error.h:14
daw::json::ErrorType
ErrorType
Definition: daw_json_assert.h:50
daw_json_assert.h
daw::json::json_exception
Definition: daw_json_assert.h:52
daw::json::throw_on_error_parse_policy
Definition: daw_json_parse_policy_error.h:6