void PrintQueryErrorMessage()

in Gems/Umbra/Code/Source/UmbraSceneComponent/UmbraSceneComponentController.cpp [20:57]


        void PrintQueryErrorMessage(const Umbra::Query::ErrorCode errorCode)
        {
            switch (errorCode)
            {
            case Umbra::Query::ERROR_OK:
                break;
            case Umbra::Query::ERROR_GENERIC_ERROR:
                AZ_Warning("UmbraSceneComponent", false, "Something completely unexpected happened.");
                break;
            case Umbra::Query::ERROR_OUT_OF_MEMORY:
                AZ_Warning("UmbraSceneComponent", false, "Not enough memory was available in the Query context to perform the operation.");
                break;
            case Umbra::Query::ERROR_INVALID_ARGUMENT:
                AZ_Warning("UmbraSceneComponent", false, "An invalid value was passed into queryPortalVisibility.");
                break;
            case Umbra::Query::ERROR_SLOTDATA_UNAVAILABLE:
                AZ_Warning("UmbraSceneComponent", false, "A tile required to complete the Query was not present in the tome.");
                break;
            case Umbra::Query::ERROR_OUTSIDE_SCENE:
                AZ_Warning("UmbraSceneComponent", false, "A query location was found to be outside of the scene boundaries.");
                break;
            case Umbra::Query::ERROR_NO_TOME:
                AZ_Warning("UmbraSceneComponent", false, "queryPortalVisibility no data was given to the Query.");
                break;
            case Umbra::Query::ERROR_NO_PATH:
                AZ_Warning("UmbraSceneComponent", false, "queryPortalVisibility path does not exist.");
                break;
            case Umbra::Query::ERROR_UNSUPPORTED_OPERATION:
                AZ_Warning("UmbraSceneComponent", false, "queryPortalVisibility operation not supported.");
                break;
            case Umbra::Query::ERROR_FEATURE_REQUIRES_BASELEVEL:
                AZ_Warning("UmbraSceneComponent", false, "Use of query features that don't work with accurate occlusion threshold < FLT_MAX.");
                break;
            default:
                AZ_Warning("UmbraSceneComponent", false, "queryPortalVisibility returned unrecognized error code.");
                break;
            }
        }