Skip to content

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

@andrus

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);
        }
    }
}

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