## [Start] Handle error or return result. ** #if( $ctx.error ) $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) ## [End] Handle error or return result. **