Skip to content

Commit

Permalink
replaced logic of character random generation
Browse files Browse the repository at this point in the history
  • Loading branch information
RedArtelerist committed Oct 19, 2023
1 parent f0da887 commit b768594
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/mate/academy/rickandmorty/config/WebAppConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package mate.academy.rickandmorty.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class WebAppConfig {
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package mate.academy.rickandmorty.exception;

public class CharacterNotFoundException extends RuntimeException {
public CharacterNotFoundException(String message) {
super(message);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package mate.academy.rickandmorty.exception;

public class RetrieveDataException extends RuntimeException {
public RetrieveDataException(String message, Throwable cause) {
super(message, cause);
}
}

0 comments on commit b768594

Please sign in to comment.