Skip to content

Check how to deal with invalid values #9

Closed
@rfc2822

Description

@rfc2822

Especially in context of #8 (comment)


Currently, Property.parse() doesn't allow properties to fail, so something like <multistatus><getetag/></multistatus> can only be handled as an existing, but empty GetETag property (with null values in it).

However, GetETag with null values doesn't make sense.

So the following changes should be done:

  • allow Property.parse() to ignore invalid exceptions (InvalidPropertyException)
  • the GetETag factory throws an InvalidPropertyException when there's no ETag text
  • thus the GetETag constructor can require a String (instead of String?)

Metadata

Metadata

Assignees

Labels

refactoringInternal improvement of existing functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions