| package com.jetbrains.python.debugger; |
| |
| |
| public class PyDebuggerException extends Exception { |
| |
| public PyDebuggerException(String message) { |
| super(message); |
| } |
| |
| public PyDebuggerException(String message, Throwable cause) { |
| super(message, cause); |
| } |
| |
| public String getTracebackError() { |
| String text = getMessage(); |
| if (text != null && text.contains("Traceback (most recent call last):")) { |
| final String[] lines = text.split("\n"); |
| if (lines.length > 0) { |
| text = lines[lines.length - 1]; |
| } |
| } |
| //noinspection ConstantConditions |
| return text; |
| } |
| |
| } |