Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
[core] Fix class name in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasr committed Oct 20, 2014
1 parent a6b2d48 commit 7c5fb03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/main/java/org/lucasr/twowayview/TwoWayView.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ private void loadLayoutManagerFromName(Context context, AttributeSet attrs, Stri

setLayoutManager(constructor.newInstance(sConstructorArgs));
} catch (Exception e) {
throw new IllegalStateException("Could not load AbsLayoutManager from class: " + name, e);
throw new IllegalStateException("Could not load TwoWayLayoutManager from " +
"class: " + name, e);
}
}

@Override
public void setLayoutManager(LayoutManager layout) {
if (!(layout instanceof TwoWayLayoutManager)) {
throw new IllegalArgumentException("TwoWayView can only use AbsLayoutManager subclasses " +
"as its layout manager");
throw new IllegalArgumentException("TwoWayView can only use TwoWayLayoutManager " +
"subclasses as its layout manager");
}

super.setLayoutManager(layout);
Expand Down

0 comments on commit 7c5fb03

Please sign in to comment.