RSpond crosscuts are independent capabilities that layer into your existing Spring Boot application. Each crosscut builds on structured error handling, giving your code smooth flow control, greater flexibility and observability for free. Use one crosscut or adopt them all—they snap together cleanly.
Error Capture
AvailableThe foundational design pattern. Replace try-catch ceremony with structured error handlers. Errors are automatically captured, categorized, and routed through observable pipelines.
handler.reportFrom(newPropertyWalker()
.withSorter(propertySortByPropertyPath())
.create())
.walk(order, property -> paths.add(property.path()));
Conversions
AvailableType-safe conversion with automatic error capture on conversion failures. Transform data between types with structured error reporting.
assertEquals(conversion.convert(handler, "1,2,3,4,5"), List.of(1, 2, 3, 4, 5));
Validation
AvailableFlexible validation that automates error capture and makes control flow concise
requireGreaterThan(7).validate(captured, 3);
requireNotBlank().validate(captured, "Hello");
if (captured.hasErrors()) {
System.err.println(captured);
}
Resources
AvailableAccess hierarchical resources through a consistent API that supports filesystems, classpath resources, HTTP resources and more—one consistent API integrated with structured error handling.
var temporary = resourceStoreFilesystem(handler)
.temporaryResource(filename(handler, "test.txt"));
temporary.withWriter(it -> it.writeText("test"));
assertEquals("test", temporary.withReader(InputReader::readAllText));
});
Observability Analytics
Coming SoonQuery error patterns, identify hotspots, and understand failure modes across your application. Analytics over the data flowing through the error capture system—no external tools required.