瀏覽代碼

Throw right exception.

NathanSweet 12 年之前
父節點
當前提交
92c3fbe946
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-csharp/src/Skeleton.cs

+ 1 - 1
spine-csharp/src/Skeleton.cs

@@ -182,7 +182,7 @@ namespace Spine {
 					Attachment attachment = null;
 					if (attachmentName != null) {
 						attachment = GetAttachment(i, attachmentName);
-						if (attachment == null) throw new ArgumentNullException("Attachment not found: " + attachmentName + ", for slot: " + slotName);
+						if (attachment == null) throw new Exception("Attachment not found: " + attachmentName + ", for slot: " + slotName);
 					}
 					slot.Attachment = attachment;
 					return;