Child pages
  • fluid.pushSoftFailure

This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

fluid.pushSoftFailure(condition)

Causes an error message to be logged to the console and a real runtime error to be thrown.

fluid.pushSoftFailure(condition);

File name: Fluid.js

Parameters

condition (Boolean|Function) Either
  • a boolean flag choosing between built-in framework strategies to be used in fluid.fail():
    • false, the default causes a "hard failure" by using a nonexistent property on a String, which will in all known environments trigger an unhandleable exception which aids debugging, or
    • true downgrades this behaviour to throw a conventional exception, which is more appropriate in test cases which need to demonstrate failure, as well as in some production environments.
  • a function, which will be called with two arguments, args (the complete arguments to fluid.fail) and activity, an array of strings describing the current framework invocation state.
  • the number -1 indicating that the previously supplied disposition should be popped off the stack

Return Value

none

 

See Also

 


 

Example

fluid.pushSoftFailure(kettle.utils.failureHandler);
  • No labels