src/jdk.jshell/share/classes/jdk/jshell/JShellException.java
changeset 49515 083318155ad1
parent 47216 71c04702a3d5
equal deleted inserted replaced
49514:25695fce1601 49515:083318155ad1
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    34 public class JShellException extends Exception {
    34 public class JShellException extends Exception {
    35 
    35 
    36     JShellException(String message) {
    36     JShellException(String message) {
    37         super(message);
    37         super(message);
    38     }
    38     }
       
    39 
       
    40     JShellException(String message, Throwable cause) {
       
    41         super(message, cause);
       
    42     }
    39 }
    43 }