# HG changeset patch # User Alain Mazy # Date 1780347383 -7200 # Node ID 4d044e9e0da1a1b8a00a29b0b03145cdd0b5e52c # Parent dcaa0166d0153440fa378af913f44aec6eab1bf3 more verbose NotImplemented errors diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancFramework/Sources/MetricsRegistry.cpp --- a/OrthancFramework/Sources/MetricsRegistry.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancFramework/Sources/MetricsRegistry.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -152,7 +152,7 @@ } break; default: - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "Unsupported metrics policy"); } } @@ -179,7 +179,7 @@ break; default: - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "Unsupported metrics policy"); } } diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancFramework/Sources/RestApi/RestApiOutput.cpp --- a/OrthancFramework/Sources/RestApi/RestApiOutput.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancFramework/Sources/RestApi/RestApiOutput.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -212,7 +212,7 @@ value.find(";") != std::string::npos || value.find(" ") != std::string::npos) { - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "Cookies may not contain space or semicolon"); } CheckStatus(); diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancFramework/Sources/Toolbox.cpp --- a/OrthancFramework/Sources/Toolbox.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -851,7 +851,7 @@ return "GB2312"; default: - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "Unsupported Boost locale encoding"); } } #endif diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp --- a/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -1597,7 +1597,7 @@ } else { - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "No count support"); } } @@ -1823,7 +1823,7 @@ } else { - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "No find support"); } } diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancServer/Sources/Database/BaseCompatibilityTransaction.cpp --- a/OrthancServer/Sources/Database/BaseCompatibilityTransaction.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancServer/Sources/Database/BaseCompatibilityTransaction.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -32,7 +32,7 @@ int64_t increment, bool shared) { - throw OrthancException(ErrorCode_NotImplemented); // Not supported + throw OrthancException(ErrorCode_NotImplemented, "BaseCompatibilityTransaction::IncrementGlobalProperty"); // Not supported } void BaseCompatibilityTransaction::UpdateAndGetStatistics(int64_t& patientsCount, @@ -42,7 +42,7 @@ int64_t& compressedSize, int64_t& uncompressedSize) { - throw OrthancException(ErrorCode_NotImplemented); // Not supported + throw OrthancException(ErrorCode_NotImplemented, "BaseCompatibilityTransaction::UpdateAndGetStatistics"); // Not supported } void BaseCompatibilityTransaction::GetChangesExtended(std::list& target /*out*/, @@ -52,21 +52,21 @@ uint32_t limit, const std::set& filterType) { - throw OrthancException(ErrorCode_NotImplemented); // Not supported + throw OrthancException(ErrorCode_NotImplemented, "BaseCompatibilityTransaction::GetChangesExtended"); // Not supported } void BaseCompatibilityTransaction::ExecuteCount(uint64_t& count, const FindRequest& request, const IDatabaseWrapper::Capabilities& capabilities) { - throw OrthancException(ErrorCode_NotImplemented); // Not supported + throw OrthancException(ErrorCode_NotImplemented, "BaseCompatibilityTransaction::ExecuteCount"); // Not supported } void BaseCompatibilityTransaction::ExecuteFind(FindResponse& response, const FindRequest& request, const IDatabaseWrapper::Capabilities& capabilities) { - throw OrthancException(ErrorCode_NotImplemented); // Not supported + throw OrthancException(ErrorCode_NotImplemented, "BaseCompatibilityTransaction::ExecuteFind"); // Not supported } void BaseCompatibilityTransaction::ExecuteFind(std::list& identifiers, diff -r dcaa0166d015 -r 4d044e9e0da1 OrthancServer/Sources/Database/Compatibility/GenericFind.cpp --- a/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp Mon Jun 01 22:31:59 2026 +0200 +++ b/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp Mon Jun 01 22:56:23 2026 +0200 @@ -198,7 +198,7 @@ } else { - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_NotImplemented, "ExecuteFind - unhandled request"); } }