Public Questions for tag [exception]

Ask Question

2 questions


0

Vote

4

Answers

20

View

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:import os file_path = "/my/direct

Jan 18

0

Vote

4

Answers

76

View

What does ArrayIndexOutOfBoundsException mean and how do I get rid of it?Here is a code sample that triggers the exception:String[] names = { "tom", "bob", "harry" }; for (int i = 0; i <= names.le

Jan 10