17 lines
832 B
C#
17 lines
832 B
C#
// note: This file contains exceptions used by FullSerializer. Exceptions are
|
|
// never used at runtime in FullSerializer; they are only used when
|
|
// validating annotations and code-based models.
|
|
|
|
using System;
|
|
|
|
namespace FullSerializer {
|
|
public sealed class fsMissingVersionConstructorException : Exception {
|
|
public fsMissingVersionConstructorException(Type versionedType, Type constructorType) :
|
|
base(versionedType + " is missing a constructor for previous model type " + constructorType) { }
|
|
}
|
|
|
|
public sealed class fsDuplicateVersionNameException : Exception {
|
|
public fsDuplicateVersionNameException(Type typeA, Type typeB, string version) :
|
|
base(typeA + " and " + typeB + " have the same version string (" + version + "); please change one of them.") { }
|
|
}
|
|
} |