You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jstruct/source/jstruct/exceptions.d

37 lines
506 B

/**
* Exception types
*/
module jstruct.exceptions;
/**
* General exception type
*/
public abstract class JStructException : Exception
{
this(string msg)
{
super("JStructException: "~msg);
}
}
/**
* Error on serialization
*/
public final class SerializationError : JStructException
{
this()
{
super("Error serializing");
}
}
/**
* Error on deserialization
*/
public final class DeserializationError : JStructException
{
this()
{
super("Error deserializing");
}
}