Package com.linkedin.restli.internal.server

Examples of com.linkedin.restli.internal.server.RestLiInternalException


   */
  public static String argumentAsString(final Object obj, final String paramName)
  {
    if (obj != null && !(obj instanceof String))
    {
      throw new RestLiInternalException("Invalid value type for parameter " + paramName);
    }
    return (String) obj;
  }
View Full Code Here


    {
      return (DataMap) new CopyFilter().filter(dataMap, filterMap);
    }
    catch (Exception e)
    {
      throw new RestLiInternalException("Error projecting fields", e);
    }
  }
View Full Code Here

          data.put(methodTrait.isRestSpecAnnotated ? methodTrait.name : m.getName(), valueData);
        }
      }
      catch (IllegalAccessException e)
      {
        throw new RestLiInternalException(e);
      }
      catch (IllegalArgumentException e)
      {
        throw new RestLiInternalException(e);
      }
      catch (InvocationTargetException e)
      {
        throw new RestLiInternalException(e);
      }
    }

    if (data.isEmpty())
    {
View Full Code Here

              }
            }
          }
          catch (ClassNotFoundException e)
          {
            throw new RestLiInternalException("Failed to load class while scanning packages", e);
          }
        }
      }
    }
  }
View Full Code Here

    {
      return CODEC.readMap(stream);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

    {
      return PSON_DATA_CODEC.readMap(stream);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

    {
      return readMapWithExceptions(message);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

    {
      return recordClass.getConstructor(DataMap.class).newInstance(data);
    }
    catch (SecurityException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (InstantiationException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (IllegalAccessException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (InvocationTargetException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (NoSuchMethodException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

      DataMap dataMap = CODEC.readMap(stream);
      return DataTemplateUtil.wrap(dataMap, recordClass);
    }
    catch (IllegalArgumentException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (SecurityException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

      DataMap dataMap = readMapWithExceptions(message);
      return DataTemplateUtil.wrap(dataMap, recordClass);
    }
    catch (IllegalArgumentException e)
    {
      throw new RestLiInternalException(e);
    }
    catch (SecurityException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.internal.server.RestLiInternalException

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.