Welcome to mirror list, hosted at ThFree Co, Russian Federation.

source.hpp « coding - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a4c7274c9345a7aaa9cb40ff482fdb17a14854a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "../base/base.hpp"
#include "../base/exception.hpp"


class SourceOutOfBoundsException : public RootException
{
public:
  SourceOutOfBoundsException(size_t bytesRead, char const * what, string const & msg)
    : RootException(what, msg), m_BytesRead(bytesRead)
  {
  }

  size_t BytesRead() const { return m_BytesRead; }

private:
  size_t const m_BytesRead;
};