Project

General

Profile

Defect #31387 » 0001-Custom-Exception-classes-should-inherit-StandardErro.patch

Go MAEDA, 2019-05-20 13:44

View differences:

app/controllers/application_controller.rb
require 'uri'
require 'cgi'
class Unauthorized < Exception; end
class Unauthorized < StandardError; end
class ApplicationController < ActionController::Base
include Redmine::I18n
app/controllers/repositories_controller.rb
require 'digest/sha1'
require 'redmine/scm/adapters'
class ChangesetNotFound < Exception; end
class InvalidRevisionParam < Exception; end
class ChangesetNotFound < StandardError; end
class InvalidRevisionParam < StandardError; end
class RepositoriesController < ApplicationController
menu_item :repository
app/models/auth_source.rb
# Generic exception for when the AuthSource can not be reached
# (eg. can not connect to the LDAP)
class AuthSourceException < Exception; end
class AuthSourceException < StandardError; end
class AuthSourceTimeoutException < AuthSourceException; end
class AuthSource < ActiveRecord::Base
app/models/repository.rb
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class ScmFetchError < Exception; end
class ScmFetchError < StandardError; end
class Repository < ActiveRecord::Base
include Redmine::Ciphering
lib/redmine/default_data/loader.rb
module Redmine
module DefaultData
class DataAlreadyLoaded < Exception; end
class DataAlreadyLoaded < StandardError; end
module Loader
include Redmine::I18n
lib/redmine/helpers/gantt.rb
module Helpers
# Simple class to handle gantt chart data
class Gantt
class MaxLinesLimitReached < Exception
class MaxLinesLimitReached < StandardError
end
include ERB::Util
lib/redmine/wiki_formatting.rb
module Redmine
module WikiFormatting
class StaleSectionError < Exception; end
class StaleSectionError < StandardError; end
@@formatters = {}
(1-1/2)