fix fail for nonexistent path

Add self exeption class for nonexistent path