Package com.linkedin.restli.internal.server

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


      DataMap dataMap = CODEC.readMap(stream);
      return new CollectionResponse<T>(dataMap, recordClass);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here


    {
      TEMPLATE_CODEC.writeDataTemplate(record, stream, orderFields);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

    {
      TEMPLATE_CODEC.writeDataTemplate(data, schema, stream, orderFields);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

    {
      return TEMPLATE_CODEC.dataTemplateToBytes(record, orderFields);
    }
    catch (IOException e)
    {
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

          // our best-effort attempt to fix failed
          // do nothing; continue to throw the original exception
          LOG.info("Fixing encoding error failed. Please sanitize your input data.");
        }
      }
      throw new RestLiInternalException(e);
    }
  }
View Full Code Here

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

      encoder.encode(schema);
      return builder.result();
    }
    catch (IOException e)
    {
      throw new RestLiInternalException("could not encode schema for '" + schema.toString() "'", e);
    }
    finally
    {
      if (builder != null)
      {
View Full Code Here

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

      encoder.encode(schemaToEncode);
      return builder.result();
    }
    catch (IOException e)
    {
      throw new RestLiInternalException("could not encode schema for '" + type.getName() + "'", e);
    }
    finally
    {
      if (builder != null)
      {
View Full Code Here

         resourceClass.isAnnotationPresent(RestLiAssociation.class)))
    {
      // If any of these annotations, a subclass of KeyValueResource is expected
      if (!KeyValueResource.class.isAssignableFrom(resourceClass))
      {
        throw new RestLiInternalException("Resource class '" + resourceClass.getName()
            + "' declares RestLi annotation but does not implement "
            + KeyValueResource.class.getName() + " interface.");
      }

      @SuppressWarnings("unchecked")
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.