API Docs for:

Class Parse.Cloud.BeforeSaveResponse

Parse.Cloud.BeforeSaveResponse( )
error <Function>

If called, will reject the save. An optional error message may be passed in.

success <Function>

If called, will allow the save to happen. If a Parse.Object is passed in, then the passed in object will be saved instead.