{"action":"created","comment":{"url":"https://api.github.com/repos/advancedtelematic/libats/pulls/comments/145361366","pull_request_review_id":70148192,"id":145361366,"diff_hunk":"@@ -16,46 +16,60 @@ import com.advancedtelematic.libats.data.{ErrorCode, ErrorCodes, ErrorRepresenta\n import de.heikoseeberger.akkahttpcirce.FailFastCirceSupport._\n import io.circe.syntax._\n import com.advancedtelematic.libats.codecs.CirceUuid._\n-import io.circe.Json\n+import io.circe.{Encoder, Json}\n+import cats.syntax.option._\n \n import scala.reflect.ClassTag\n import scala.util.control.NoStackTrace\n+import scala.language.existentials\n \n object Errors {\n   import Directives._\n   import ErrorRepresentation._\n \n-  import scala.language.existentials\n+  abstract class Error[T](val code: ErrorCode,\n+                          val responseCode: StatusCode,\n+                          val msg: String,\n+                          val cause: Throwable = null,\n+                          val errorId: UUID = UUID.randomUUID()) extends Throwable(msg, cause) with NoStackTrace","path":"libats-http/src/main/scala/com/advancedtelematic/libats/http/ErrorHandler.scala","position":21,"original_position":21,"commit_id":"55d8ffd79196858cbbb8d91126800e3036aeb419","original_commit_id":"55d8ffd79196858cbbb8d91126800e3036aeb419","user":{"login":"simao","id":203575,"avatar_url":"https://avatars2.githubusercontent.com/u/203575?v=4","gravatar_id":"","url":"https://api.github.com/users/simao","html_url":"https://github.com/simao","followers_url":"https://api.github.com/users/simao/followers","following_url":"https://api.github.com/users/simao/following{/other_user}","gists_url":"https://api.github.com/users/simao/gists{/gist_id}","starred_url":"https://api.github.com/users/simao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simao/subscriptions","organizations_url":"https://api.github.com/users/simao/orgs","repos_url":"https://api.github.com/users/simao/repos","events_url":"https://api.github.com/users/simao/events{/privacy}","received_events_url":"https://api.github.com/users/simao/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2017-10-18T09:31:53Z","updated_at":"2017-10-18T09:33:45Z","html_url":"https://github.com/advancedtelematic/libats/pull/42#discussion_r145361366","pull_request_url":"https://api.github.com/repos/advancedtelematic/libats/pulls/42","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/comments/145361366"},"html":{"href":"https://github.com/advancedtelematic/libats/pull/42#discussion_r145361366"},"pull_request":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/42"}},"in_reply_to_id":145351803},"pull_request":{"url":"https://api.github.com/repos/advancedtelematic/libats/pulls/42","id":147044231,"html_url":"https://github.com/advancedtelematic/libats/pull/42","diff_url":"https://github.com/advancedtelematic/libats/pull/42.diff","patch_url":"https://github.com/advancedtelematic/libats/pull/42.patch","issue_url":"https://api.github.com/repos/advancedtelematic/libats/issues/42","number":42,"state":"open","locked":false,"title":"Add support for JsonError","user":{"login":"simao","id":203575,"avatar_url":"https://avatars2.githubusercontent.com/u/203575?v=4","gravatar_id":"","url":"https://api.github.com/users/simao","html_url":"https://github.com/simao","followers_url":"https://api.github.com/users/simao/followers","following_url":"https://api.github.com/users/simao/following{/other_user}","gists_url":"https://api.github.com/users/simao/gists{/gist_id}","starred_url":"https://api.github.com/users/simao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simao/subscriptions","organizations_url":"https://api.github.com/users/simao/orgs","repos_url":"https://api.github.com/users/simao/repos","events_url":"https://api.github.com/users/simao/events{/privacy}","received_events_url":"https://api.github.com/users/simao/received_events","type":"User","site_admin":false},"body":"See https://github.com/advancedtelematic/ota-tuf/pull/103","created_at":"2017-10-17T13:50:32Z","updated_at":"2017-10-18T09:33:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca901b056335ccddbb796b8a8dc1ff31a248b7bf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/advancedtelematic/libats/pulls/42/commits","review_comments_url":"https://api.github.com/repos/advancedtelematic/libats/pulls/42/comments","review_comment_url":"https://api.github.com/repos/advancedtelematic/libats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advancedtelematic/libats/issues/42/comments","statuses_url":"https://api.github.com/repos/advancedtelematic/libats/statuses/55d8ffd79196858cbbb8d91126800e3036aeb419","head":{"label":"advancedtelematic:refactor/PRO-4194","ref":"refactor/PRO-4194","sha":"55d8ffd79196858cbbb8d91126800e3036aeb419","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":82199768,"name":"libats","full_name":"advancedtelematic/libats","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/libats","description":null,"fork":false,"url":"https://api.github.com/repos/advancedtelematic/libats","forks_url":"https://api.github.com/repos/advancedtelematic/libats/forks","keys_url":"https://api.github.com/repos/advancedtelematic/libats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/libats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/libats/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/libats/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/libats/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/libats/events","assignees_url":"https://api.github.com/repos/advancedtelematic/libats/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/libats/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/libats/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/libats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/libats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/libats/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/libats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/libats/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/libats/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/libats/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/libats/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/libats/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/libats/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/libats/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/libats/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/libats/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/libats/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/libats/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/libats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/libats/merges","archive_url":"https://api.github.com/repos/advancedtelematic/libats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/libats/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/libats/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/libats/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/libats/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/libats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/libats/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/libats/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/libats/deployments","created_at":"2017-02-16T16:13:58Z","updated_at":"2017-02-16T16:14:31Z","pushed_at":"2017-10-17T14:12:13Z","git_url":"git://github.com/advancedtelematic/libats.git","ssh_url":"git@github.com:advancedtelematic/libats.git","clone_url":"https://github.com/advancedtelematic/libats.git","svn_url":"https://github.com/advancedtelematic/libats","homepage":null,"size":184,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"advancedtelematic:master","ref":"master","sha":"4b9a60edf85b39e835120cae4e7bc493ddcbaad0","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":82199768,"name":"libats","full_name":"advancedtelematic/libats","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/libats","description":null,"fork":false,"url":"https://api.github.com/repos/advancedtelematic/libats","forks_url":"https://api.github.com/repos/advancedtelematic/libats/forks","keys_url":"https://api.github.com/repos/advancedtelematic/libats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/libats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/libats/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/libats/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/libats/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/libats/events","assignees_url":"https://api.github.com/repos/advancedtelematic/libats/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/libats/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/libats/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/libats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/libats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/libats/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/libats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/libats/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/libats/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/libats/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/libats/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/libats/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/libats/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/libats/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/libats/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/libats/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/libats/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/libats/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/libats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/libats/merges","archive_url":"https://api.github.com/repos/advancedtelematic/libats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/libats/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/libats/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/libats/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/libats/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/libats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/libats/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/libats/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/libats/deployments","created_at":"2017-02-16T16:13:58Z","updated_at":"2017-02-16T16:14:31Z","pushed_at":"2017-10-17T14:12:13Z","git_url":"git://github.com/advancedtelematic/libats.git","ssh_url":"git@github.com:advancedtelematic/libats.git","clone_url":"https://github.com/advancedtelematic/libats.git","svn_url":"https://github.com/advancedtelematic/libats","homepage":null,"size":184,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/42"},"html":{"href":"https://github.com/advancedtelematic/libats/pull/42"},"issue":{"href":"https://api.github.com/repos/advancedtelematic/libats/issues/42"},"comments":{"href":"https://api.github.com/repos/advancedtelematic/libats/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advancedtelematic/libats/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/advancedtelematic/libats/statuses/55d8ffd79196858cbbb8d91126800e3036aeb419"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"simao"}}