pixelgon/Assets/Source/fsExceptions.cs
2020-06-05 11:54:36 -07:00

16 lines
No EOL
823 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.") { }
}
}