Skip to content

Commit

Permalink
Merge pull request #31961 from slava77/patch-83
Browse files Browse the repository at this point in the history
make VertexException inherit from cms::Exception
  • Loading branch information
cmsbuild committed Oct 28, 2020
2 parents e1e9682 + f6a80e3 commit 9d390e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions RecoVertex/VertexPrimitives/BuildFile.xml
Expand Up @@ -3,6 +3,7 @@
<use name="DataFormats/GeometryVector"/>
<use name="DataFormats/VertexReco"/>
<use name="DataFormats/Candidate"/>
<use name="FWCore/Utilities"/>
<use name="TrackingTools/TransientTrack"/>
<export>
<lib name="1"/>
Expand Down
8 changes: 4 additions & 4 deletions RecoVertex/VertexPrimitives/interface/VertexException.h
Expand Up @@ -4,15 +4,15 @@
#ifndef Vertex_Exceptions_H
#define Vertex_Exceptions_H

#include <exception>
#include "FWCore/Utilities/interface/Exception.h"
#include <string>

/// Common base class

class VertexException : public std::exception {
class VertexException : public cms::Exception {
public:
VertexException() throw() {}
VertexException(const std::string& message) throw() : theMessage(message) {}
VertexException() throw() : cms::Exception("VertexException") {}
VertexException(const std::string& message) throw() : cms::Exception("VertexException"), theMessage(message) {}
~VertexException() throw() override {}
const char* what() const throw() override { return theMessage.c_str(); }

Expand Down

0 comments on commit 9d390e8

Please sign in to comment.