﻿using System;

namespace JLGames.RocketDriver.Actions.Loaderx
{
    public static class LoaderErrors
    {
        /// <summary>
        /// Config file does not exist
        /// 配置文件不存在
        /// </summary>
        public static readonly Exception ErrorSettingsNotFound = new Exception("LoaderSettings is not in Resources. ");

        /// <summary>
        /// Configuration not initialized
        /// 配置未初始化
        /// </summary>
        public static readonly Exception ErrorSettingsIsNull = new Exception("LoaderSettings is not initialized. ");

        /// <summary>
        /// Empty path error
        /// 空路径错误
        /// </summary>
        public static readonly Exception ErrorPathEmpty = new Exception("Path is empty. ");

        /// <summary>
        /// Subpath is empty error
        /// 子路径空错误
        /// </summary>
        public static readonly Exception ErrorSubPathEmpty = new Exception("Sub path is empty. ");

        /// <summary>
        /// Path does not found
        /// 路径不存在
        /// </summary>
        public static readonly Exception ErrorPathNotFound = new Exception("Path is not found. ");

        /// <summary>
        /// Empty name error
        /// 空名称错误
        /// </summary>
        public static readonly Exception ErrorNameEmpty = new Exception("Name is empty. ");

        /// <summary>
        /// Empty resource bundle error
        /// 空资源包错误
        /// </summary>
        public static readonly Exception ErrorBundleNull = new Exception("AssetBundle is null. ");

        /// <summary>
        /// Uri empty error
        /// Uri空错误
        /// </summary>
        public static readonly Exception ErrorUriEmpty = new Exception("AssetBundle is empty. ");

        /// <summary>
        /// The resource error may be caused by the path or the type mismatch.
        /// 资源错误，可能是路径造成的，也可能是类型不对应造成的。
        /// </summary>
        public static readonly Exception ErrorAssetNotFound = new Exception("Asset is not found. ");

        /// <summary>
        /// AssetBundle undefined
        /// AssetBundle未定义
        /// </summary>
        public static readonly Exception ErrorAbUndefined = new Exception("AssetBundle undefined. ");

        /// <summary>
        /// AssetBundle name disabled
        /// AssetBundle名称禁用
        /// </summary>
        public static readonly Exception ErrorBundleNameForbit = new Exception("AssetBundle name forbit. ");

        /// <summary>
        /// Cache path is empty
        /// 缓存路径为空
        /// </summary>
        public static readonly Exception ErrorCachePathEmpty = new Exception("Cache Path is empty. ");
    }
}