-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
If I attempt to get an External Tool from Canvas using:
ExternalToolReader reader = apiFactory.getReader(ExternalToolReader.class, token);
Optional<ExternalTool> tool = reader.getExternalToolInAccount(accountId, toolId)
then if the tool doesn't exist in Canvas I don't get back an empty Optional but instead a edu.ksu.canvas.exception.ObjectNotFoundException is thrown.
It seems like either when the toolId doesn't exist we should either:
- get an empty
Optional - throw an exception, but not have the method return an
Optional
or is there another reason why we should have both theOptionaland the exception?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels