aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/source/dyaml/exception.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-02-25 19:59:47 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-02-25 20:54:19 -0500
commit78a231014be3a76e9e546b31a5e6fa2a9a7b720e (patch)
tree89c64cc66898e20b7f2f81e837df68f265c62757 /src/ext_depends/D-YAML/source/dyaml/exception.d
parentverbosity level, "vox_gt[lv]" (voice greater than) (diff)
external dependency update, housekeeping, routine
Diffstat (limited to 'src/ext_depends/D-YAML/source/dyaml/exception.d')
-rw-r--r--src/ext_depends/D-YAML/source/dyaml/exception.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/source/dyaml/exception.d b/src/ext_depends/D-YAML/source/dyaml/exception.d
index 2f13a44..46d3047 100644
--- a/src/ext_depends/D-YAML/source/dyaml/exception.d
+++ b/src/ext_depends/D-YAML/source/dyaml/exception.d
@@ -94,6 +94,9 @@ struct MarkedYAMLExceptionData
// Base class of YAML exceptions with marked positions of the problem.
abstract class MarkedYAMLException : YAMLException
{
+ /// Position of the error.
+ Mark mark;
+
// Construct a MarkedYAMLException with specified context and problem.
this(string context, const Mark contextMark, string problem, const Mark problemMark,
string file = __FILE__, size_t line = __LINE__) @safe pure nothrow
@@ -102,6 +105,7 @@ abstract class MarkedYAMLException : YAMLException
(contextMark != problemMark ? contextMark.toString() ~ '\n' : "") ~
problem ~ '\n' ~ problemMark.toString() ~ '\n';
super(msg, file, line);
+ mark = problemMark;
}
// Construct a MarkedYAMLException with specified problem.
@@ -110,6 +114,7 @@ abstract class MarkedYAMLException : YAMLException
@safe pure nothrow
{
super(problem ~ '\n' ~ problemMark.toString(), file, line);
+ mark = problemMark;
}
/// Construct a MarkedYAMLException from a struct storing constructor parameters.