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

Issue 7354044: state: unexport NotFoundError

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rog
Modified:
11 years, 2 months ago
Reviewers:
dimitern, dave, jameinel, mp+149104
Visibility:
Public.

Description

state: unexport NotFoundError We export NotFoundf instead, making NotFoundError redundant. This makes it possible for external clients to create errors that satisfy IsNotFound. https://code.launchpad.net/~rogpeppe/juju-core/222-unexport-notfounderror/+merge/149104 Requires: https://code.launchpad.net/~rogpeppe/juju-core/221-instanceid-bool/+merge/149097 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: unexport NotFoundError #

Patch Set 3 : state: unexport NotFoundError #

Patch Set 4 : state: unexport NotFoundError #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -40 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/machine.go View 2 chunks +5 lines, -4 lines 0 comments Download
M state/relation.go View 2 chunks +4 lines, -3 lines 0 comments Download
M state/service.go View 2 chunks +4 lines, -3 lines 0 comments Download
M state/settings.go View 3 chunks +3 lines, -3 lines 0 comments Download
M state/state.go View 7 chunks +16 lines, -12 lines 0 comments Download
M state/state_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/unit.go View 7 chunks +9 lines, -9 lines 0 comments Download
M state/user.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/firewaller/firewaller.go View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 2 months ago (2013-02-18 17:20:23 UTC) #1
dave_cheney.net
On 2013/02/18 17:20:23, rog wrote: > Please take a look. LGTM. Thank you.
11 years, 2 months ago (2013-02-18 22:16:00 UTC) #2
jameinel
Obviously 99% of this is just the mechanical replacement of n=>N and N=>n which LGTM. ...
11 years, 2 months ago (2013-02-19 10:24:54 UTC) #3
dimitern
LGTM, nice!
11 years, 2 months ago (2013-02-19 10:39:23 UTC) #4
rog
11 years, 2 months ago (2013-02-19 11:44:03 UTC) #5
*** Submitted:

state: unexport NotFoundError

We export NotFoundf instead, making NotFoundError
redundant. This makes it possible for external
clients to create errors that satisfy IsNotFound.

R=dfc, jameinel, dimitern
CC=
https://codereview.appspot.com/7354044
Sign in to reply to this message.

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