Skip to content

Commit

Permalink
Item14237: Replaced Foswiki::Exception->throw with Foswiki::Exception…
Browse files Browse the repository at this point in the history
…::Fatal->throw
  • Loading branch information
vrurg committed Nov 24, 2017
1 parent 5f8dd24 commit e05800b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/lib/Foswiki/UserMapping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ alphanumerics and underscores.
If you fail to create a new user (for eg your Mapper has read only access),
<pre>
Foswiki::Exception->throw(text => 'Failed to add user: '.$error);
Foswiki::Exception::Fatal->throw(text => 'Failed to add user: '.$error);
</pre>
where $error is a descriptive string.
Expand Down Expand Up @@ -328,7 +328,7 @@ adds the user specified by the cuid to the group.
Mapper should throws Foswiki::Exception if errors are encountered. For example,
if the group does not exist, and the create flag is not supplied:
<pre>
Foswiki::Exception->throw( text => $this->app
Foswiki::Exception::Fatal->throw( text => $this->app
->i18n->maketext('Group does not exist and create not permitted')
) unless ($create);
</pre>
Expand All @@ -342,7 +342,7 @@ if the group does not exist, and the create flag is not supplied:
Mapper should throws Foswiki::Exception if errors are encountered. For example,
if the user does not exist in the group:
<pre>
Foswiki::Exception->throw(
Foswiki::Exception::Fatal->throw(
text => $this->app->i18n->maketext(
'User [_1] not in group, cannot be removed', $cuid
)
Expand Down

0 comments on commit e05800b

Please sign in to comment.