Class InvalidStorageKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.leandev.appfuse.file.FileStorageException
io.leandev.appfuse.file.InvalidStorageKeyException
- All Implemented Interfaces:
Serializable
儲存識別碼不合法例外
partition、fileId 或 tempId 不符合 StorageKeys 規則時拋出,例如含 ..、絕對路徑、
反斜線、空區段或控制字元。代表輸入不可信或已損毀,呼叫端應視為錯誤請求,而非檔案不存在。
例外訊息不包含原始值,避免把攻擊字串寫入回應或日誌。
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidStorageKeyException
-