Skip to content

Commit

Permalink
feat: add NetInfoNameInvalidError
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Jul 16, 2019
1 parent e9f4305 commit 425f091
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/api/v1/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ def initialize
super code: 1019, status: 422, title: "URI parameters is invalid", detail: "Given statistic info name is invalid", href: "https://github.com/nervosnetwork/ckb-explorer"
end
end

class NetInfoNameInvalidError < Error
def initialize
super code: 1020, status: 422, title: "URI parameters is invalid", detail: "Given net info name is invalid", href: "https://github.com/nervosnetwork/ckb-explorer"
end
end
end
end
end

0 comments on commit 425f091

Please sign in to comment.