aboutsummaryrefslogtreecommitdiffstats
path: root/persistence/src/vespa/persistence/spi/exceptions.h
blob: 8537eedad31360ffdbafc2653345190068686762 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/util/exception.h>

namespace storage::spi {

/**
 * Exception used where the cause has already been reported to the user, so
 * one only wants to wind back to caller, and not have it log it or print
 * backtrace.
 *
 * Used to create good log errors, and avoid caller printing backtrace, or an
 * inspecific error.
 */
VESPA_DEFINE_EXCEPTION(HandledException, vespalib::Exception);

}