Apache Camel's YAML DSL examples are currently in some parts lacking when compared to Java and XML samples. One thing I was trying to figure out was how to configure error handler using YAML.
Here's an example for future reference:
def obj = [:]
obj.FirstName = "M"
obj.LastName = "K"
result = obj