diff --git a/core/src/main/java/org/lucasr/twowayview/TwoWayView.java b/core/src/main/java/org/lucasr/twowayview/TwoWayView.java index 6b4bd2b..9762686 100644 --- a/core/src/main/java/org/lucasr/twowayview/TwoWayView.java +++ b/core/src/main/java/org/lucasr/twowayview/TwoWayView.java @@ -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);