Package play.exceptions

Examples of play.exceptions.UnexpectedException


   * @return
   */
  protected static HashMap<String, Object> getInfoMap() {
    HashMap<String, Object> map = infos.get();
        if (map == null) {
            throw new UnexpectedException("Mailer not instrumented ?");
        }
    return map;
  }
View Full Code Here


  @Override
  public void onApplicationStop() {
    try {

    } catch (Exception e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

      }
    } catch (Exception e) {
      if (e instanceof PlayException) {
        throw (PlayException) e;
      }
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

   * @return
   */
  private static HashMap<String, Object> getInfoMap() {
    HashMap<String, Object> map = infos.get();
        if (map == null) {
            throw new UnexpectedException("Mailer not instrumented ?");
        }
    return map;
  }
View Full Code Here

      }
    } catch (Exception e) {
      if (e instanceof PlayException) {
        throw (PlayException) e;
      }
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

      ZipOutputStream zos = new ZipOutputStream(os);
      zipDirectory(directory, directory, zos);
      zos.close();
      os.close();
    } catch (Exception e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

         OutputStreamWriter out = new OutputStreamWriter(response.out);
         template.printTo(out);
         out.flush();
         setContentTypeIfNotSet(response, contentType);
      } catch (IOException e) {
         throw new UnexpectedException(e);
      }
   }
View Full Code Here

      public void apply(Request request, Response response) {
          try {
              setContentTypeIfNotSet(response, "application/json; charset=utf-8");
              response.out.write(json.getBytes("utf-8"));
          } catch (Exception e) {
              throw new UnexpectedException(e);
          }
      }
View Full Code Here

      // v1.1 compliant
      bw.bind(name, (Type)o.getClass(), params, "", o, o.getClass().getAnnotations());
     
      return (T) o;
    } catch (Exception e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

          "validation.fieldList.badType", fieldName);     
     
      ((SienaSupport)o).update();
      return (T) o;
      } catch (Exception e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

TOP

Related Classes of play.exceptions.UnexpectedException

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.