{"action":"created","comment":{"url":"https://api.github.com/repos/mulesoft/mule-api/pulls/comments/89636239","pull_request_review_id":10181578,"id":89636239,"diff_hunk":"@@ -0,0 +1,49 @@\n+/*\n+ * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com\n+ * The software in this package is published under the terms of the CPAL v1.0\n+ * license, a copy of which has been included with this distribution in the\n+ * LICENSE.txt file.\n+ */\n+package org.mule.runtime.api.meta.model.error;\n+\n+import org.mule.runtime.api.error.Errors;\n+import org.mule.runtime.api.meta.model.operation.OperationModel;\n+\n+import java.util.Optional;\n+\n+/**\n+ * A model which represents a error possible error that could be thrown\n+ * by the Operation represented by the {@link OperationModel}.\n+ * </p>\n+ * This model declares:\n+ * <ul>\n+ * <li><b>Type</b>: The kind of the error to thrown</li>\n+ * <li><b>Namespace</b>: The origin of this error type</li>\n+ * <li><b>Parent</b>: The error from which the current error inherits</li>\n+ * </ul>\n+ *\n+ * @since 1.0\n+ */\n+public interface ErrorModel {\n+\n+  /**\n+   * Gets the type of the error.\n+   * This error could be one of the {@link Errors}\n+   *\n+   * @return The type of the error\n+   */\n+  String getType();\n+\n+  /**\n+   * Gets the namespace of error.\n+   * This namespace represent the origin or how declares this error.\n+   *\n+   * @return The namespace of the error\n+   */\n+  String getNamespace();","path":"src/main/java/org/mule/runtime/api/meta/model/error/ErrorModel.java","position":43,"original_position":43,"commit_id":"ae77c6e31b9f4b4f5c13842bb9b210e41e81171a","original_commit_id":"ae77c6e31b9f4b4f5c13842bb9b210e41e81171a","user":{"login":"alegmarra","id":1502904,"avatar_url":"https://avatars.githubusercontent.com/u/1502904?v=3","gravatar_id":"","url":"https://api.github.com/users/alegmarra","html_url":"https://github.com/alegmarra","followers_url":"https://api.github.com/users/alegmarra/followers","following_url":"https://api.github.com/users/alegmarra/following{/other_user}","gists_url":"https://api.github.com/users/alegmarra/gists{/gist_id}","starred_url":"https://api.github.com/users/alegmarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alegmarra/subscriptions","organizations_url":"https://api.github.com/users/alegmarra/orgs","repos_url":"https://api.github.com/users/alegmarra/repos","events_url":"https://api.github.com/users/alegmarra/events{/privacy}","received_events_url":"https://api.github.com/users/alegmarra/received_events","type":"User","site_admin":false},"body":"I think we should enforce the fact that each extension provides it's own custom errors","created_at":"2016-11-25T15:59:21Z","updated_at":"2016-11-25T15:59:21Z","html_url":"https://github.com/mulesoft/mule-api/pull/110#discussion_r89636239","pull_request_url":"https://api.github.com/repos/mulesoft/mule-api/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/comments/89636239"},"html":{"href":"https://github.com/mulesoft/mule-api/pull/110#discussion_r89636239"},"pull_request":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/mulesoft/mule-api/pulls/110","id":95302450,"html_url":"https://github.com/mulesoft/mule-api/pull/110","diff_url":"https://github.com/mulesoft/mule-api/pull/110.diff","patch_url":"https://github.com/mulesoft/mule-api/pull/110.patch","issue_url":"https://api.github.com/repos/mulesoft/mule-api/issues/110","number":110,"state":"open","locked":false,"title":"MULE-10861: Support new Error Handling in Extensions API","user":{"login":"estebanwasinger","id":2280709,"avatar_url":"https://avatars.githubusercontent.com/u/2280709?v=3","gravatar_id":"","url":"https://api.github.com/users/estebanwasinger","html_url":"https://github.com/estebanwasinger","followers_url":"https://api.github.com/users/estebanwasinger/followers","following_url":"https://api.github.com/users/estebanwasinger/following{/other_user}","gists_url":"https://api.github.com/users/estebanwasinger/gists{/gist_id}","starred_url":"https://api.github.com/users/estebanwasinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estebanwasinger/subscriptions","organizations_url":"https://api.github.com/users/estebanwasinger/orgs","repos_url":"https://api.github.com/users/estebanwasinger/repos","events_url":"https://api.github.com/users/estebanwasinger/events{/privacy}","received_events_url":"https://api.github.com/users/estebanwasinger/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-25T13:12:12Z","updated_at":"2016-11-25T15:59:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197eee29ffad407e0e7efa2246441adc1530f078","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mulesoft/mule-api/pulls/110/commits","review_comments_url":"https://api.github.com/repos/mulesoft/mule-api/pulls/110/comments","review_comment_url":"https://api.github.com/repos/mulesoft/mule-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mulesoft/mule-api/issues/110/comments","statuses_url":"https://api.github.com/repos/mulesoft/mule-api/statuses/ae77c6e31b9f4b4f5c13842bb9b210e41e81171a","head":{"label":"mulesoft:MULE-10861","ref":"MULE-10861","sha":"ae77c6e31b9f4b4f5c13842bb9b210e41e81171a","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":46141100,"name":"mule-api","full_name":"mulesoft/mule-api","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/mule-api","description":null,"fork":false,"url":"https://api.github.com/repos/mulesoft/mule-api","forks_url":"https://api.github.com/repos/mulesoft/mule-api/forks","keys_url":"https://api.github.com/repos/mulesoft/mule-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule-api/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule-api/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule-api/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule-api/events","assignees_url":"https://api.github.com/repos/mulesoft/mule-api/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule-api/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule-api/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule-api/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule-api/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule-api/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule-api/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule-api/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule-api/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule-api/merges","archive_url":"https://api.github.com/repos/mulesoft/mule-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule-api/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule-api/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule-api/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule-api/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule-api/deployments","created_at":"2015-11-13T18:55:59Z","updated_at":"2016-10-27T17:42:31Z","pushed_at":"2016-11-25T15:01:58Z","git_url":"git://github.com/mulesoft/mule-api.git","ssh_url":"git@github.com:mulesoft/mule-api.git","clone_url":"https://github.com/mulesoft/mule-api.git","svn_url":"https://github.com/mulesoft/mule-api","homepage":null,"size":437,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"mulesoft:master","ref":"master","sha":"be2d8955312fcfe6a880eb37f23b711ed7073d4c","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":46141100,"name":"mule-api","full_name":"mulesoft/mule-api","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/mule-api","description":null,"fork":false,"url":"https://api.github.com/repos/mulesoft/mule-api","forks_url":"https://api.github.com/repos/mulesoft/mule-api/forks","keys_url":"https://api.github.com/repos/mulesoft/mule-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule-api/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule-api/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule-api/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule-api/events","assignees_url":"https://api.github.com/repos/mulesoft/mule-api/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule-api/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule-api/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule-api/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule-api/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule-api/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule-api/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule-api/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule-api/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule-api/merges","archive_url":"https://api.github.com/repos/mulesoft/mule-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule-api/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule-api/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule-api/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule-api/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule-api/deployments","created_at":"2015-11-13T18:55:59Z","updated_at":"2016-10-27T17:42:31Z","pushed_at":"2016-11-25T15:01:58Z","git_url":"git://github.com/mulesoft/mule-api.git","ssh_url":"git@github.com:mulesoft/mule-api.git","clone_url":"https://github.com/mulesoft/mule-api.git","svn_url":"https://github.com/mulesoft/mule-api","homepage":null,"size":437,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/110"},"html":{"href":"https://github.com/mulesoft/mule-api/pull/110"},"issue":{"href":"https://api.github.com/repos/mulesoft/mule-api/issues/110"},"comments":{"href":"https://api.github.com/repos/mulesoft/mule-api/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mulesoft/mule-api/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/mulesoft/mule-api/statuses/ae77c6e31b9f4b4f5c13842bb9b210e41e81171a"}}}}
{"actor":{"display_login":"alegmarra"}}