try{
} catch(Exception e) {
System.out.println(e.getMessage());
}
```
#### Methods that exception instances always have
|Method|meaning|
|---|---|
|String getMessage() |Get error messages.|
|void printStackTrace() |The contents of the stack trace are displayed on the screen.|
e.g. `e.printStackTrace();`
Recommended Posts