Added support for passoning array of function in action
Added default method for errors, pass error message in default method.