Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1089)

Issue 38540044: unify rpc.IsNoSuchRequest and NoImplementedErr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by dimitern
Modified:
10 years, 4 months ago
Reviewers:
mp+199336, rog
Visibility:
Public.

Description

unify rpc.IsNoSuchRequest and NoImplementedErr Introducing CodeNotImplemented in params and rpc. Now both rpc.NoSuchRequest and api.NotImplementedError are serialized and handled as an error, satisfying params.IsCodeNotImplemented(), so it can be checked only once. Kept "no such request " prefix of the error message for compatibility. https://code.launchpad.net/~dimitern/juju-core/225-unify-not-implemented-errors/+merge/199336 Requires: https://code.launchpad.net/~dimitern/juju-core/225-upload-charm-via-api/+merge/199251 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : unify rpc.IsNoSuchRequest and NoImplementedErr #

Total comments: 2

Patch Set 3 : unify rpc.IsNoSuchRequest and NoImplementedErr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -64 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/addmachine.go View 2 chunks +1 line, -2 lines 0 comments Download
M cmd/juju/constraints.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/juju/debughooks.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/destroymachine.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/environment.go View 3 chunks +3 lines, -3 lines 0 comments Download
M cmd/juju/set.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/ssh.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/unset.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/upgradejuju.go View 2 chunks +2 lines, -2 lines 0 comments Download
M rpc/client.go View 2 chunks +4 lines, -7 lines 0 comments Download
M rpc/reflect_test.go View 1 2 chunks +3 lines, -3 lines 0 comments Download
M rpc/rpc_test.go View 1 5 chunks +14 lines, -4 lines 0 comments Download
M rpc/rpcreflect/value.go View 1 2 chunks +21 lines, -2 lines 0 comments Download
M rpc/server.go View 1 3 chunks +18 lines, -0 lines 0 comments Download
M state/api/client.go View 1 2 2 chunks +5 lines, -27 lines 0 comments Download
M state/api/client_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M state/api/params/apierror.go View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dimitern
Please take a look.
10 years, 4 months ago (2013-12-17 20:14:25 UTC) #1
rog
LGTM modulo the below. Thanks! https://codereview.appspot.com/38540044/diff/20001/state/api/client.go File state/api/client.go (right): https://codereview.appspot.com/38540044/diff/20001/state/api/client.go#newcode362 state/api/client.go:362: type NotImplementedError struct { ...
10 years, 4 months ago (2013-12-18 09:10:03 UTC) #2
dimitern
10 years, 4 months ago (2013-12-18 09:24:59 UTC) #3
Please take a look.

https://codereview.appspot.com/38540044/diff/20001/state/api/client.go
File state/api/client.go (right):

https://codereview.appspot.com/38540044/diff/20001/state/api/client.go#newcod...
state/api/client.go:362: type NotImplementedError struct {
On 2013/12/18 09:10:03, rog wrote:
> I don't think we need this type.
> &params.Error{
>    Message: "charm upload is not supported by the API server",
>    Code: params.CodeNotimplemented,
> }
> 
> should be sufficient I think.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b