/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014-2020 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class BucketNotExistsException : public Exception {
public:
BucketNotExistsException() = delete;
- BucketNotExistsException(const PolicyBucketId &bucketId)
- : m_bucketId(bucketId), m_message("BucketNotExistsException") {
+ BucketNotExistsException(const PolicyBucketId &bucket)
+ : m_bucketId(bucket)
+ {
+ m_message = "Bucket " + bucketId() + " does not exist";
}
virtual ~BucketNotExistsException() {};
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2020 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class UnknownPolicyTypeException : public Exception {
public:
UnknownPolicyTypeException() = delete;
- UnknownPolicyTypeException(const PolicyType &policyType)
- : m_policyType(policyType), m_message("UnknownPolicyTypeException") {
+ UnknownPolicyTypeException(const PolicyType &p)
+ : m_policyType(p)
+ {
+ m_message = "Unknown PolicyType [" + std::to_string(policyType()) + "]";
}
virtual ~UnknownPolicyTypeException() {};