From dc2fb9c23cdb1425c704ce30b0cd061e073dd11f Mon Sep 17 00:00:00 2001 From: Date: Sun, 24 Jun 2012 21:43:49 +0000 Subject: [PATCH] More information in exception message for badly (?) formed ThreadKinds --- src/com/webcodepro/shrinkit/ThreadKind.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/webcodepro/shrinkit/ThreadKind.java b/src/com/webcodepro/shrinkit/ThreadKind.java index af8b383..2418b60 100644 --- a/src/com/webcodepro/shrinkit/ThreadKind.java +++ b/src/com/webcodepro/shrinkit/ThreadKind.java @@ -20,20 +20,20 @@ public enum ThreadKind { case 0x0001: return ALLOCATED_SPACE; case 0x0002: return APPLE_IIGS_ICON; } - throw new IllegalArgumentException("Unknown thread_kind for message thread_class of " + threadKind); + throw new IllegalArgumentException("Unknown thread_kind "+threadKind+" for message thread_class of " + threadClass); case CONTROL: if (threadKind == 0x0000) return CREATE_DIRECTORY; - throw new IllegalArgumentException("Unknown thread_kind for control thread_class of " + threadKind); + throw new IllegalArgumentException("Unknown thread_kind "+threadKind+" for control thread_class of " + threadClass); case DATA: switch (threadKind) { case 0x0000: return DATA_FORK; case 0x0001: return DISK_IMAGE; case 0x0002: return RESOURCE_FORK; } - throw new IllegalArgumentException("Unknown thread_kind for data thread_class of " + threadKind); + throw new IllegalArgumentException("Unknown thread_kind "+threadKind+" for data thread_class of " + threadClass); case FILENAME: if (threadKind == 0x0000) return FILENAME; - throw new IllegalArgumentException("Unknown thread_kind for filename thread_class of " + threadKind); + throw new IllegalArgumentException("Unknown thread_kind "+threadKind+" for filename thread_class of " + threadClass); default: throw new IllegalArgumentException("Unknown thread_class of " + threadClass); }