Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

fail

fail(String): Nothing

Throws an exception with the specified message.

Example

        
     
1
2
3
4
%dw 2.0
import dw::Runtime
---
Runtime::fail("Error")
Output
Error