Catel.IoC.ServiceLocator.ThrowTypeNotRegisteredException C# (CSharp) Method

ThrowTypeNotRegisteredException() private method

Throws the TypeNotRegisteredException but will also reset the current type request path.
private ThrowTypeNotRegisteredException ( Type type, string message = null ) : void
type System.Type The type.
message string The message.
return void
        private void ThrowTypeNotRegisteredException(Type type, string message = null)
        {
            _currentTypeRequestPath = null;
            // or _currentTypeRequestPath.PopType();

            throw Log.ErrorAndCreateException(msg => new TypeNotRegisteredException(type, msg),
                "The type '{0}' is not registered", type.GetSafeFullName(true));
        }
        #endregion