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

Remove unused local exceptions #2279

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Conversation

bernardnormier
Copy link
Member

This cleanup PR removes a number of unused local exceptions.

* This exception indicates a request was interrupted.
* \headerfile Ice/Ice.h
*/
class ICE_API OperationInterruptedException : public LocalException
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java-only local exception

* This exception indicates that a response for an unknown request ID has been received.
* \headerfile Ice/Ice.h
*/
class ICE_API UnknownRequestIdException : public ProtocolException
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used since at least Ice 3.7. An unknown request ID is ok as it corresponds to canceled request.

@@ -262,23 +262,6 @@ open class UnknownUserException: UnknownException {
}
}

/// This exception is raised if the Ice library version does not match the version in the Ice header files.
open class VersionMismatchException: LocalException {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a C++-only exception that doesn't apply to C++-derived mappings.

@@ -1436,23 +1385,6 @@ open class MemoryLimitException: MarshalException {
}
}

/// This exception is raised when a string conversion to or from UTF-8 fails during marshaling or unmarshaling.
open class StringConversionException: MarshalException {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a C++ decoding exception that doesn't apply to Swift and MATLAB since they perform their own string decoding without throwing this exception.

@bernardnormier bernardnormier merged commit b48a4b9 into zeroc-ice:main Jun 10, 2024
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants