diff --git a/Common/Common-Unity/Common-Unity.csproj b/Common/Common-Unity/Common-Unity.csproj
index 4bb9263..9ab3475 100644
--- a/Common/Common-Unity/Common-Unity.csproj
+++ b/Common/Common-Unity/Common-Unity.csproj
@@ -30,6 +30,9 @@
Json\LCJsonConverter.cs
+
+ Exception\LCException.cs
+
diff --git a/Common/Common/Common.csproj b/Common/Common/Common.csproj
index 8157b01..669c947 100644
--- a/Common/Common/Common.csproj
+++ b/Common/Common/Common.csproj
@@ -13,5 +13,6 @@
+
diff --git a/Storage/Storage/LCException.cs b/Common/Common/Exception/LCException.cs
similarity index 50%
rename from Storage/Storage/LCException.cs
rename to Common/Common/Exception/LCException.cs
index acf2249..1daebab 100644
--- a/Storage/Storage/LCException.cs
+++ b/Common/Common/Exception/LCException.cs
@@ -1,11 +1,20 @@
using System;
-namespace LeanCloud.Storage {
+namespace LeanCloud {
+ ///
+ /// LeanCloud 异常
+ ///
public class LCException : Exception {
+ ///
+ /// 错误码
+ ///
public int Code {
get; set;
}
+ ///
+ /// 错误信息
+ ///
public new string Message {
get; set;
}
@@ -14,5 +23,9 @@ namespace LeanCloud.Storage {
Code = code;
Message = message;
}
+
+ public override string ToString() {
+ return $"{Code} - {Message}";
+ }
}
}
diff --git a/Storage/Storage-Unity/Storage-Unity.csproj b/Storage/Storage-Unity/Storage-Unity.csproj
index 7ea411a..42d8e68 100644
--- a/Storage/Storage-Unity/Storage-Unity.csproj
+++ b/Storage/Storage-Unity/Storage-Unity.csproj
@@ -15,9 +15,6 @@
LCCloud.cs
-
- LCException.cs
-
LCFile.cs
diff --git a/Storage/Storage.Test/ExceptionTest.cs b/Storage/Storage.Test/ExceptionTest.cs
index 83f70b3..bcd80c0 100644
--- a/Storage/Storage.Test/ExceptionTest.cs
+++ b/Storage/Storage.Test/ExceptionTest.cs
@@ -1,5 +1,5 @@
using NUnit.Framework;
-using LeanCloud.Storage;
+using LeanCloud;
namespace Storage.Test {
public class ExceptionTest {