Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make VertexException inherit from cms::Exception #31961

Merged
merged 2 commits into from Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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