#2063403: Fatal when editing a nonexistent image effect added the UnknownPluginException for use in the image module. But not a lot of thought was put into the naming.

It's not that we found a plugin and don't know what to do with it (unknown) it's that we couldn't find one (not found).

In other places, we have RouteNotFoundException, FileNotFoundException, DatabaseNotFoundException... So let's follow that instead.

Comments

msonnabaum’s picture

Status: Needs review » Reviewed & tested by the community

Looks great. Much clearer. RTBC-ing assuming tests come back ok.

eclipsegc’s picture

Status: Reviewed & tested by the community » Needs work
$message = String::format("Plugin ID '@instance' was not found.", array('@instance' => $plugin_id));

Can we change @instance too?

Otherwise this seems super logical to me.

Eclipse

tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new7.54 KB
new989 bytes

I see your nitpick and I raise you a decoupling.

eclipsegc’s picture

Status: Needs review » Reviewed & tested by the community

RE-RTBC assuming tests pass.

Eclipse

webchick’s picture

Status: Reviewed & tested by the community » Fixed

That does indeed make more sense.

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.