mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Custom Exception classes should inherit StandardError instead of Exception (#31387).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c9a3c6c7fd
commit
6d6ea928c8
@ -20,7 +20,7 @@
|
|||||||
require 'uri'
|
require 'uri'
|
||||||
require 'cgi'
|
require 'cgi'
|
||||||
|
|
||||||
class Unauthorized < Exception; end
|
class Unauthorized < StandardError; end
|
||||||
|
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|||||||
@ -20,8 +20,8 @@
|
|||||||
require 'digest/sha1'
|
require 'digest/sha1'
|
||||||
require 'redmine/scm/adapters'
|
require 'redmine/scm/adapters'
|
||||||
|
|
||||||
class ChangesetNotFound < Exception; end
|
class ChangesetNotFound < StandardError; end
|
||||||
class InvalidRevisionParam < Exception; end
|
class InvalidRevisionParam < StandardError; end
|
||||||
|
|
||||||
class RepositoriesController < ApplicationController
|
class RepositoriesController < ApplicationController
|
||||||
menu_item :repository
|
menu_item :repository
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# Generic exception for when the AuthSource can not be reached
|
# Generic exception for when the AuthSource can not be reached
|
||||||
# (eg. can not connect to the LDAP)
|
# (eg. can not connect to the LDAP)
|
||||||
class AuthSourceException < Exception; end
|
class AuthSourceException < StandardError; end
|
||||||
class AuthSourceTimeoutException < AuthSourceException; end
|
class AuthSourceTimeoutException < AuthSourceException; end
|
||||||
|
|
||||||
class AuthSource < ActiveRecord::Base
|
class AuthSource < ActiveRecord::Base
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class ScmFetchError < Exception; end
|
class ScmFetchError < StandardError; end
|
||||||
|
|
||||||
class Repository < ActiveRecord::Base
|
class Repository < ActiveRecord::Base
|
||||||
include Redmine::Ciphering
|
include Redmine::Ciphering
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
module Redmine
|
module Redmine
|
||||||
module DefaultData
|
module DefaultData
|
||||||
class DataAlreadyLoaded < Exception; end
|
class DataAlreadyLoaded < StandardError; end
|
||||||
|
|
||||||
module Loader
|
module Loader
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|||||||
@ -21,7 +21,7 @@ module Redmine
|
|||||||
module Helpers
|
module Helpers
|
||||||
# Simple class to handle gantt chart data
|
# Simple class to handle gantt chart data
|
||||||
class Gantt
|
class Gantt
|
||||||
class MaxLinesLimitReached < Exception
|
class MaxLinesLimitReached < StandardError
|
||||||
end
|
end
|
||||||
|
|
||||||
include ERB::Util
|
include ERB::Util
|
||||||
|
|||||||
@ -21,7 +21,7 @@ require 'digest/md5'
|
|||||||
|
|
||||||
module Redmine
|
module Redmine
|
||||||
module WikiFormatting
|
module WikiFormatting
|
||||||
class StaleSectionError < Exception; end
|
class StaleSectionError < StandardError; end
|
||||||
|
|
||||||
@@formatters = {}
|
@@formatters = {}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user