Skip to content

Commit

Permalink
ISSUE #695 changed exception class and removed unused defines
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjf committed Sep 19, 2024
1 parent b43e675 commit 58deef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bouncer/src/repo/core/model/bson/repo_bson_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "repo_bson_builder.h"
#include "repo_bson_binmapping_builder.h"
#include "../../../lib/repo_log.h"
#include "../../../lib/repo_exception.h"

using namespace repo::core::model;

Expand Down Expand Up @@ -743,7 +744,7 @@ RepoCalibration repo::core::model::RepoBSONFactory::makeRepoCalibration(

if (horizontal2d.size() != 2 || horizontal3d.size() != 2)
{
throw std::runtime_error("Incomplete calibration vectors supplied to makeRepoCalibration");
throw repo::lib::RepoException("Incomplete calibration vectors supplied to makeRepoCalibration");
}

RepoBSONBuilder horizontalBuilder;
Expand Down
2 changes: 0 additions & 2 deletions bouncer/src/repo/core/model/repo_model_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@
#define REPO_LABEL_DRAWING "drawing"
#define REPO_LABEL_REVISION "revision"
#define REPO_LABEL_CREATEDAT "createdAt"
#define REPO_LABEL_CREATEDBY "createdBy"
#define REPO_LABEL_HORIZONTAL "horizontal"
#define REPO_LABEL_VERTICALRANGE "verticalRange"
#define REPO_LABEL_UNITS "units"

#define REPO_COMMAND_UPDATE "update"
Expand Down

0 comments on commit 58deef2

Please sign in to comment.