Path: redb-route/redb.Route.JsonTransform/JsonTransformCompilationException.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.JsonTransform/JsonTransformCompilationException.cs
----
namespace redb.Route.JsonTransform;
///
/// A JSONata specification could not be read or parsed. Raised while the route is compiled, so it
/// surfaces from RouteContext.Start() with the specification's name and the engine's message
/// (which carries the position of the error).
///
public sealed class JsonTransformCompilationException : Exception
{
/// Creates the exception.
public JsonTransformCompilationException(string specificationName, string message, Exception? inner = null)
: base($"JSON transform '{specificationName}': {message}", inner)
{
SpecificationName = specificationName;
}
/// Specification name as given in the DSL / XML (file path, resource locator, or <inline>).
public string SpecificationName { get; }
}