From 7c5fb03c5d5b4ec1bedf946ec535713724beda2d Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Mon, 20 Oct 2014 22:52:27 +0100 Subject: [PATCH] [core] Fix class name in log messages --- core/src/main/java/org/lucasr/twowayview/TwoWayView.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);