소스 검색

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");