1 module PixelPerfectEngine.system.exc;
2 /*
3  * Copyright (C) 2015-2017, by Laszlo Szeremi under the Boost license.
4  *
5  * Pixel Perfect Engine, exceptions
6  */
7 
8 public class AudioInitializationException : Exception{
9 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
10 		super(msg, file, line, next);
11 	}
12 
13 }
14 
15 public class GraphicsInitializationException : Exception{
16 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
17 		super(msg, file, line, next);
18 	}
19 
20 }
21 
22 public class VideoModeException : Exception{
23 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
24 		super(msg, file, line, next);
25 	}
26 
27 }
28 
29 //public class VideoException
30 
31 public class FileAccessException : Exception{
32 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
33 		super(msg, file, line, next);
34 	}
35 
36 }
37 
38 public class TileFormatException : Exception{
39 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
40 		super(msg, file, line, next);
41 	}
42 
43 }
44 
45 public class BitmapFormatException : Exception{
46 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
47 		super(msg, file, line, next);
48 	}
49 }
50 
51 public class ConfigFileException : Exception{
52 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
53 		super(msg, file, line, next);
54 	}
55 }
56 
57 public class MapFileException : Exception{
58 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
59 		super(msg, file, line, next);
60 	}
61 }
62 
63 public class SpriteLayerException : Exception{
64 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
65 		super(msg, file, line, next);
66 	}
67 }
68 
69 public class SpritePriorityException : SpriteLayerException{
70 	public this(string msg, string file = __FILE__, size_t line =  __LINE__, Throwable next = null) {
71 		super(msg, file, line, next);
72 	}
73 }