{"action":"opened","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/360","repository_url":"https://api.github.com/repos/mxcl/PromiseKit","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/360/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/360/events","html_url":"https://github.com/mxcl/PromiseKit/issues/360","id":132970181,"number":360,"title":"Way to setup Promise with only reject.","user":{"login":"alexth","id":2251522,"avatar_url":"https://avatars.githubusercontent.com/u/2251522?v=3","gravatar_id":"","url":"https://api.github.com/users/alexth","html_url":"https://github.com/alexth","followers_url":"https://api.github.com/users/alexth/followers","following_url":"https://api.github.com/users/alexth/following{/other_user}","gists_url":"https://api.github.com/users/alexth/gists{/gist_id}","starred_url":"https://api.github.com/users/alexth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexth/subscriptions","organizations_url":"https://api.github.com/users/alexth/orgs","repos_url":"https://api.github.com/users/alexth/repos","events_url":"https://api.github.com/users/alexth/events{/privacy}","received_events_url":"https://api.github.com/users/alexth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T13:10:36Z","updated_at":"2016-02-11T13:10:36Z","closed_at":null,"body":"Is it possible to setup Promise with only reject block in some way, without making do-catch?\r\n```\r\nfunc save(newName: String?, newPhotoImage: UIImage?) -> Promise<Entity> {\r\n            let newNameError: NSError? = workerValidator.validateNameLength(newName)\r\n            if newNameError != nil {\r\n                output.showNameValidationError(newNameError!)\r\n                return Promise { fulfill, reject -> Void in\r\n                    reject(nameLengthError)\r\n                }\r\n            }\r\n            return workerDatabase.updateUserFields(newName, image: newPhotoImage)\r\n    }\r\n```"}}