Skip to content

BaseKernel.eval(..) should not declare a checked exception #59

Description

@andrus

BaseKernel.eval(..) should not declare a checked exception. It should throw some kind of RuntimeException instead. This will allow the extension classes to cut down the exception handling boilerplate:

public class DFLibJupyterExtension implements Extension {
   ... 
    @Override
    public void install(BaseKernel kernel) {
        try {
            kernel.eval(...);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions