Skip to content

Apache Lucene open-source search software

Simplify Solr::Exception - Exception already allows for a message

Erik Hatcher3051e0a8ddd4
diff --git a/client/ruby/solrb/lib/solr/exception.rb b/client/ruby/solrb/lib/solr/exception.rb
index cd501cb2292..47ca0562bfb 100644
--- a/client/ruby/solrb/lib/solr/exception.rb
+++ b/client/ruby/solrb/lib/solr/exception.rb
@@ -11,18 +11,5 @@
# limitations under the License.
module Solr
-
- class Exception < Exception
- attr_reader :message
-
- def initialize(message)
- @message = message
- end
-
- def to_s
- @message
- end
-
- end
-
+ class Exception < Exception; end
end