Examples of RegistrationError


Examples of appeng.api.exceptions.RegistrationError

  }

  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    throw new RegistrationError( "Cannot pass group of items to a recipe which desires a single recipe item." );
  }
View Full Code Here

Examples of appeng.api.exceptions.RegistrationError

  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    if ( isAir )
      throw new RegistrationError( "Found blank item and expected a real item." );

    if ( nameSpace.equalsIgnoreCase( "oreDictionary" ) )
      throw new RegistrationError( "Recipe format expected a single item, but got a set of items." );

    Block blk = GameRegistry.findBlock( nameSpace, itemName );
    if ( blk == null )
      blk = GameRegistry.findBlock( nameSpace, "tile." + itemName );
View Full Code Here

Examples of appeng.api.exceptions.RegistrationError

  @Override
  public void register() throws RegistrationError, MissingIngredientError
  {
    if ( in.getItemStack().getItem() == null )
      throw new RegistrationError( in.toString() + ": Smelting Input is not a valid item." );

    if ( out.getItemStack().getItem() == null )
      throw new RegistrationError( out.toString() + ": Smelting Output is not a valid item." );

    GameRegistry.addSmelting( in.getItemStack(), out.getItemStack(), 0 );
  }
View Full Code Here

Examples of appeng.api.exceptions.RegistrationError

  }

  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    throw new RegistrationError( "Cannot pass group of items to a recipe which desires a single recipe item." );
  }
View Full Code Here

Examples of appeng.api.exceptions.RegistrationError

      GameRegistry.addRecipe( new ShapelessRecipe( outIS, args.toArray( new Object[args.size()] ) ) );
    }
    catch (Throwable e)
    {
      AELog.error( e );
      throw new RegistrationError( "Error while adding shapeless recipe." );
    }
  }
View Full Code Here

Examples of appeng.api.exceptions.RegistrationError

      GameRegistry.addRecipe( new ShapedRecipe( outIS, args.toArray( new Object[args.size()] ) ) );
    }
    catch (Throwable e)
    {
      AELog.error( e );
      throw new RegistrationError( "Error while adding shaped recipe." );
    }
  }
View Full Code Here

Examples of org.jayasoft.woj.common.model.registration.RegistrationError

                    || StringUtils.isBlank(u.getEmail())
                    || StringUtils.isBlank(u.getFirstName())
                    || StringUtils.isBlank(u.getLastName())
                    || StringUtils.isBlank(u.getCountry())
                ) {
                r = new RegistrationError();
                ((RegistrationError)r).setCause(new RegistrationException("missing required fields or fields contain only spaces"));
            } else if (!EmailHelper.doEmailSeemsValid(u.getEmail())) {
                r = new RegistrationError();
                ((RegistrationError)r).setCause(new RegistrationException("your email seems to be invalid"));
            } else {
                User registeredUser = ServiceFactory.getRegistrationService().registerTrialUser(u, hostId);
                ServiceFactory.getRegistrationService().sendEmailVerification(registeredUser);
                r = new RegistrationSuccessfull();
            }
        } catch (RegistrationException e) {
            r = new RegistrationError();
            ((RegistrationError)r).setCause(e);
        } catch (Exception e) {
            r = new RegistrationError();
        }
        XMLResponseHelper.writeXMLResponse(response, r);
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.