Skip to content

Commit

Permalink
throw exception if can't handle
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalv committed Nov 12, 2012
1 parent f15f933 commit 1e1cfc8
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -126,6 +126,12 @@ else if ( object instanceof String ) {
file = ResourcePathTransformer.getInstance()
.transform( (String) object );
}
else {
throw new IllegalArgumentException(
"Could not use object as file. Object was: "
+ object.getClass() + ": "
+ object.toString() );
}
try {
IDE.openEditor(page, file);
}
Expand Down

0 comments on commit 1e1cfc8

Please sign in to comment.