Преглед изворни кода

LightProbeFactory: improve a misleading exception in getDebugGui()

Stephen Gold пре 4 година
родитељ
комит
3beca2b4ee
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java

+ 2 - 1
jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java

@@ -223,7 +223,8 @@ public class LightProbeFactory {
      */
     public static Node getDebugGui(AssetManager manager, LightProbe probe) {
         if (!probe.isReady()) {
-            throw new UnsupportedOperationException("This EnvProbe is not ready yet, try to test isReady()");
+            throw new IllegalStateException(
+                    "The LightProbe is not ready yet, please test isReady().");
         }
 
         Node debugNode = new Node("debug gui probe");