code: private void verifyInput() {
          if (inData == null || inStations == null) {
              throw new NullPointerException(msg.message("kriging.stationproblem"));
          }
          if (pMode < 0 || pMode > 1) {
              throw new IllegalArgumentException(msg.message("kriging.defaultMode"));
          }
  
          if (defaultVariogramMode != 0 && defaultVariogramMode != 1) {
              throw new IllegalArgumentException(msg.message("kriging.variogramMode"));
          }
          if (defaultVariogramMode == 0) {
              if (pVariance == 0 || pIntegralscale[0] == 0 || pIntegralscale[1] == 0 || pIntegralscale[2] == 0) {
  
                  pm.errorMessage(msg.message("kriging.noParam"));
                  pm.errorMessage("varianza " + pVariance);
                  pm.errorMessage("Integral scale x " + pIntegralscale[0]);
                  pm.errorMessage("Integral scale y " + pIntegralscale[1]);
                  pm.errorMessage("Integral scale z " + pIntegralscale[2]);
              }
          }
          if (defaultVariogramMode == 1) {
              if (pNug == 0 || pS == 0 || pA == 0) {
                  pm.errorMessage(msg.message("kriging.noParam"));
                  pm.errorMessage("Nugget " + pNug);
                  pm.errorMessage("Sill " + pS);
                  pm.errorMessage("Range " + pA);
              }
          }
  
          if ((pMode == 0) && inInterpolate == null) {
              throw new ModelsIllegalargumentException(msg.message("kriging.noPoint"), this, pm);
          }
          if (pMode == 1 && inInterpolationGrid == null) {
              throw new ModelsIllegalargumentException("The gridded interpolation needs a gridgeometry in input.", this, pm);
          }
  
      }
docs: Verify the input of the model.