Raven.Database.Server.HttpServer.TryHandleException C# (CSharp) Méthode

TryHandleException() protected méthode

protected TryHandleException ( IHttpContext ctx, Exception exception ) : bool
ctx IHttpContext
exception System.Exception
Résultat bool
		protected bool TryHandleException(IHttpContext ctx, Exception exception)
		{
			var indexDisabledException = exception as IndexDisabledException;
			if (indexDisabledException != null)
			{
				HandleIndexDisabledException(ctx, indexDisabledException);
				return true;
			}
			var indexDoesNotExistsException = exception as IndexDoesNotExistsException;
			if (indexDoesNotExistsException != null)
			{
				HandleIndexDoesNotExistsException(ctx, indexDoesNotExistsException);
				return true;
			}

			return false;
		}