v0.2.54..v0.2.55 changeset FieldDefinition.h
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/schema/FieldDefinition.h b/hoot-core/src/main/cpp/hoot/core/io/schema/FieldDefinition.h
index 70dfdcd..e7d9398 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/schema/FieldDefinition.h
+++ b/hoot-core/src/main/cpp/hoot/core/io/schema/FieldDefinition.h
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2018 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2018, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef COLUMN_H
#define COLUMN_H
@@ -40,17 +40,21 @@ namespace hoot
class FieldDefinition
{
public:
+
class InvalidValueException : public HootException
{
public:
+
InvalidValueException(QString fieldName, QString message) :
HootException(message),
_fieldName(fieldName)
- { }
+ {
+ }
virtual ~InvalidValueException() throw() {}
private:
+
QString _fieldName;
};
@@ -87,15 +91,16 @@ public:
virtual QString toString() const = 0;
protected:
+
void _reportError(const QString& field, const QString& error, StrictChecking strict) const;
bool _allowNull;
bool _defaultIsNull;
private:
+
int _width;
QString _name;
-
};
}