Project

General

Profile

Download (3.8 KB) Statistics
| Branch: | Revision:

library / src / main / java / org / distorted / library / program / FragmentCompilationException.java @ d23592bb

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2016 Leszek Koltunski  leszek@koltunski.pl                                          //
3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
5
//                                                                                               //
6
// This library is free software; you can redistribute it and/or                                 //
7
// modify it under the terms of the GNU Lesser General Public                                    //
8
// License as published by the Free Software Foundation; either                                  //
9
// version 2.1 of the License, or (at your option) any later version.                            //
10
//                                                                                               //
11
// This library is distributed in the hope that it will be useful,                               //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                             //
14
// Lesser General Public License for more details.                                               //
15
//                                                                                               //
16
// You should have received a copy of the GNU Lesser General Public                              //
17
// License along with this library; if not, write to the Free Software                           //
18
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA                //
19
///////////////////////////////////////////////////////////////////////////////////////////////////
20

    
21
package org.distorted.library.program;
22

    
23
///////////////////////////////////////////////////////////////////////////////////////////////////
24

    
25
/**
26
 *  Thrown asynchronously by the library whenever shader compilation fails.
27
 *  If compilation of the fragment shader fails for some other reason than too many uniforms.
28
 *  <p>
29
 *  This can happen on older OpenGL ES 2.0 devices if they, say, do not support variable loops in the shaders.
30
 *  Theoretically should never happen on devices supporting at least OpenGL ES 3.0.
31
 */
32

    
33
@SuppressWarnings("serial")
34
public class FragmentCompilationException extends Exception 
35
  {
36

    
37
///////////////////////////////////////////////////////////////////////////////////////////////////
38
/**
39
 * Default empty constructor  
40
 */
41
  public FragmentCompilationException() 
42
    {
43
   
44
    }
45

    
46
///////////////////////////////////////////////////////////////////////////////////////////////////
47
/**
48
 * Constructor with a message describing why compilation failed.  
49
 *   
50
 * @param detailMessage Message describing why compilation failed
51
 */
52
  public FragmentCompilationException(String detailMessage) 
53
    {
54
    super(detailMessage);
55
    }
56

    
57
///////////////////////////////////////////////////////////////////////////////////////////////////
58
/**
59
 * Constructor necessary to make Chained Exceptions working.
60
 *  
61
 * @param throwable The parent Throwable.
62
 */
63
  public FragmentCompilationException(Throwable throwable) 
64
    {
65
    super(throwable);
66
    }
67

    
68
///////////////////////////////////////////////////////////////////////////////////////////////////
69
/**
70
 * Constructor necessary to make Chained Exceptions working.
71
 *   
72
 * @param detailMessage Message describing why compilation failed
73
 * @param throwable The parent Throwable.
74
 */
75
  public FragmentCompilationException(String detailMessage, Throwable throwable) 
76
    {
77
    super(detailMessage, throwable);
78
    }
79

    
80
///////////////////////////////////////////////////////////////////////////////////////////////////  
81
  }
(2-2/6)