391392393394395396397398
return this.encoding.getName(cid); } catch (IOException e) { // shouldn't occur throw new ValidationException("Unable to check Widths consistency", e); } }
458459460461462463464465
addValidationError(ctx, new ValidationError(ERROR_GRAPHIC_OUTPUT_INTENT_ICC_PROFILE_INVALID, "DestOutputProfile isn't a valid ICCProfile. Caused by : " + e.getMessage())); } catch (IOException e) { throw new ValidationException("Unable to parse the ICC Profile.", e); } }
4748495051525354555657
{ List<XMPSchema> schemas = metadata.getAllSchemas(); if (schemas.size() == 0) { throw new ValidationException("Schemas not found in the given metadata representation"); } String about = schemas.get(0).getAboutValue(); // rdf:description must have an rdf:about attribute
8283848586878889909192
*/ public final void validate() throws ValidationException { if (pdcs == null) { throw new ValidationException("Unable to create a PDColorSpace with the value null"); } this.iccpw = ICCProfileWrapper.getOrSearchICCProfile(context); processAllColorSpace(pdcs); }
96979899100101102103104105106
{ COSBase gsBase = extGStates.getItem(key); COSDictionary gsDict = COSUtils.getAsDictionary(gsBase, cosDocument); if (gsDict == null) { throw new ValidationException("The Extended Graphics State dictionary is invalid"); } listOfExtGState.add(gsDict); } } }
444445446447448449450451452453454455456457458459460461
{ List<ValidationError> ve = new ArrayList<ValidationError>(); if (document == null) { throw new ValidationException("Document provided is null"); } else { PDDocumentInformation dico = document.getDocumentInformation(); if (metadata == null) { throw new ValidationException("Metadata provided are null"); } else { DublinCoreSchema dc = metadata.getDublinCoreSchema();
520521522523524525526
*/ protected ValidationException formatAccessException(String type, String target, Throwable cause) { StringBuilder sb = new StringBuilder(80); sb.append("Cannot treat ").append(type).append(" ").append(target).append(" property"); return new ValidationException(sb.toString(), cause); }
536537538539540541542
*/ protected ValidationException SchemaAccessException(String target, Throwable cause) { StringBuilder sb = new StringBuilder(80); sb.append("Cannot access to the ").append(target).append(" schema"); return new ValidationException(sb.toString(), cause); }
180181182183184185186187188189190191192
{ return clazz.newInstance(); } catch (InstantiationException e) { throw new ValidationException(processName + " can't be created", e); } catch (IllegalAccessException e) { throw new ValidationException(processName + " can't be created", e); } }
174175176177178179180181
result.add(createActionManager(ctx, COSUtils.getAsDictionary(aDict, cosDocument), additionActionKey)); } } else { throw new ValidationException("Action entry isn't an instance of COSDictionary"); } }