Skip to content

Commit 63ec7ac

Browse files
committed
comment updates
1 parent 4e66d04 commit 63ec7ac

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/com/wildbit/java/postmark/client/ApiClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ public TemplateValidation validateTemplate(TemplateToValidate data) throws Postm
147147
/**
148148
* Old method for sending messages with templates.
149149
*
150+
* @param data - template message data
151+
* @return message response
152+
*
150153
* @deprecated use {@link #deliverMessageWithTemplate(TemplatedMessage)} ()} instead.
151154
*/
152155
@Deprecated

src/main/java/com/wildbit/java/postmark/client/HttpClientErrorHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public HttpClientErrorHandler(DataHandler dataHandler) {
2121
*
2222
* @param statusCode - HTTP status code
2323
* @param message - HTTP response message
24-
* @throws PostmarkException in case invalid HTTP response is returned.
24+
* @return postmark error
25+
*
26+
* @throws java.io.IOException in case invalid HTTP response is returned.
2527
*/
2628
public PostmarkException throwErrorBasedOnStatusCode(Integer statusCode, String message) throws IOException {
2729
switch (statusCode) {

src/main/java/com/wildbit/java/postmark/client/data/model/message/BaseMessage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ public void setAttachments(List<Map<String, String>> attachments) {
232232
* Add attachments from file path
233233
*
234234
* @param path file path
235+
* @throws IOException
235236
*/
236237
public void addAttachment(String path) throws IOException {
237238
addAttachment(new File(path).getName(), readFileContent(path), readFileContentType(path));

0 commit comments

Comments
 (0)