1
|
package org.distorted.library.exception;
|
2
|
|
3
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
4
|
/**
|
5
|
* Thrown by {@link org.distorted.library.Distorted#onSurfaceCreated(android.opengl.GLSurfaceView)}
|
6
|
* if linking of the Shaders fails.
|
7
|
* <p>
|
8
|
* Theoretically this should never happen.
|
9
|
*/
|
10
|
@SuppressWarnings("serial")
|
11
|
public class LinkingException extends Exception
|
12
|
{
|
13
|
|
14
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
15
|
/**
|
16
|
* Default empty constructor
|
17
|
*/
|
18
|
public LinkingException()
|
19
|
{
|
20
|
|
21
|
}
|
22
|
|
23
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
24
|
/**
|
25
|
* Constructor with a message describing why linking failed.
|
26
|
*
|
27
|
* @param detailMessage Message describing why linking failed
|
28
|
*/
|
29
|
public LinkingException(String detailMessage)
|
30
|
{
|
31
|
super(detailMessage);
|
32
|
}
|
33
|
|
34
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
35
|
/**
|
36
|
* Constructor necessary to make Chained Exceptions working.
|
37
|
*
|
38
|
* @param throwable The parent Throwable.
|
39
|
*/
|
40
|
public LinkingException(Throwable throwable)
|
41
|
{
|
42
|
super(throwable);
|
43
|
}
|
44
|
|
45
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
46
|
/**
|
47
|
* Constructor necessary to make Chained Exceptions working.
|
48
|
*
|
49
|
* @param detailMessage Message describing why linking failed
|
50
|
* @param throwable The parent Throwable.
|
51
|
*/
|
52
|
public LinkingException(String detailMessage, Throwable throwable)
|
53
|
{
|
54
|
super(detailMessage, throwable);
|
55
|
}
|
56
|
|
57
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
58
|
}
|