Car/Assets/Plugin/YogiGameCore/FullSerializer/Source/fsExceptions.cs

16 lines
823 B
C#
Raw Permalink Normal View History

2024-12-31 07:57:41 +08:00
// 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.") { }
}
}