Skip to content

Commit

Permalink
Address feedback: Use TF_CODING_ERROR instead of throwing an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamed Sabri committed Nov 25, 2020
1 parent 2750774 commit 9836089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/mayaUsd/undo/UsdUndoStateDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void UsdUndoStateDelegate::_OnSetFieldDictValueByKey(
const TfToken& keyPath,
const VtValue& value)
{
throw std::logic_error(std::string { __func__ } + "is not implemented !!!");
TF_CODING_ERROR("_OnSetFieldDictValueByKey (VtValue) is not yet implemented!");
}

void UsdUndoStateDelegate::_OnSetFieldDictValueByKey(
Expand All @@ -209,17 +209,17 @@ void UsdUndoStateDelegate::_OnSetFieldDictValueByKey(
const TfToken& keyPath,
const SdfAbstractDataConstValue& value)
{
throw std::logic_error(std::string { __func__ } + "is not implemented !!!");
TF_CODING_ERROR("_OnSetFieldDictValueByKey (SdfAbstractDataConstValue) is not yet implemented!");
}

void UsdUndoStateDelegate::_OnSetTimeSample(const SdfPath& path, double time, const VtValue& value)
{
throw std::logic_error(std::string { __func__ } + "is not implemented !!!");
TF_CODING_ERROR("_OnSetTimeSample (VtValue) is not yet implemented!");
}

void UsdUndoStateDelegate::_OnSetTimeSample(const SdfPath& path, double time, const SdfAbstractDataConstValue& value)
{
throw std::logic_error(std::string { __func__ } + "is not implemented !!!");
TF_CODING_ERROR("_OnSetTimeSample (SdfAbstractDataConstValue) is not yet implemented!");
}

void UsdUndoStateDelegate::_OnCreateSpec(const SdfPath& path, SdfSpecType specType, bool inert)
Expand Down

0 comments on commit 9836089

Please sign in to comment.