Package org.xrace.util

Examples of org.xrace.util.SystemeException


      fileOut.close();
      return new FileResourceStream(file);
    }
    catch (IOException e)
    {
      throw new SystemeException(e);
    }
  }
View Full Code Here


          fileOut.close();
          return new FileResourceStream(file);
        }
        catch (IOException e)
        {
          throw new SystemeException(e);
        }
      }

      @Override
      protected void setHeaders(WebResponse response)
View Full Code Here

                  this.setResponsePage(new FacturePage(
                      facture));
                }
                else
                {
                  throw new SystemeException(
                      "Le numéro de facture n'est pas valide");
                }

                break;

              case 2:

                final Transaction transaction = null;
                /*
                 Transaction transaction = GestionFacturesForm.this
                 .getTransactionService()
                 .findByCodeConfirmation(transact);*/

                if (transaction != null)
                {
                  facture = transaction.getFacture();

                  if (facture != null)
                  {
                    this.setResponsePage(new FacturePage(
                        facture));
                  }
                  else
                  {
                    throw new SystemeException(
                        "Aucune facture ne correspond à ce numéro de transaction");
                  }
                }
                else
                {
                  throw new SystemeException(
                      "Le numéro de transaction n'est pas valide");
                }

                break;
              default:
                throw new SystemeException(
                    "Le critère de recherche n'est pas valide");
              }
            }
            else
            {
              throw new SystemeException(
                  "Vous devez indiquer un critère de recherche");
            }
          }
          else
          {
            throw new SystemeException(
                "Vous devez sélectionner un type de recherche");
          }
        }
        catch (final SystemeException e)
        {
View Full Code Here

        {
          bufferedDynamicImageResource.setImage(ImageIO.read(in));
        }
        catch (IOException e)
        {
          throw new SystemeException(e);
        }
        item.add(new Image("image", bufferedDynamicImageResource));
      }
      else
      {
View Full Code Here

        {
          bufferedDynamicImageResource.setImage(ImageIO.read(in));
        }
        catch (IOException e)
        {
          throw new SystemeException(e);
        }
        item.add(new Image("image", bufferedDynamicImageResource));
      }
      else
      {
View Full Code Here

      {
        FileUtils.forceMkdir(directory);
      }
      catch (IOException e)
      {
        throw new SystemeException("Le répertoire cible n'a pas pu "
            + "être créé. ");
      }
    }
  }
View Full Code Here

        fileNameOk = true;
      }

      if (counter > 200)
      {
        throw new SystemeException("Impossible de trouver un "
            + "nom de fichier convenable.");
      }
      counter++;
    } while (!fileNameOk);

    FileOutputStream fos = null;
    try
    {
      fos = new FileOutputStream(file);
      IOUtils.copy(in, fos);
    }
    catch (IOException e)
    {
      throw new SystemeException(e);
    }
    finally
    {
      IOUtils.closeQuietly(fos);
    }
View Full Code Here

      {
        bufferedDynamicImageResource.setImage(ImageIO.read(in));
      }
      catch (IOException e)
      {
        throw new SystemeException(e);
      }
      add(new Image("image", bufferedDynamicImageResource));
    }
    else
    {
View Full Code Here

      final QueryResults qr = query.execute(this);
      orderedList = qr.getResults();
    }
    catch (final QueryParseException e)
    {
      throw new SystemeException(e);
    }
    catch (final QueryExecutionException e)
    {
      throw new SystemeException(e);
    }

    return BusinessObjectListDecorator.decorate(orderedList, clazz);
  }
View Full Code Here

          new Resource("image2.gif", "gif", "La image2"));
      fis.close();
    }
    catch (FileNotFoundException e)
    {
      throw new SystemeException(e);
    }
    catch (IOException e)
    {
      throw new SystemeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.xrace.util.SystemeException

Copyright © 2018 www.massapicom. 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.