From f57a6381ba0240a4c5de3b4a9dbe7573f4c3775e Mon Sep 17 00:00:00 2001 From: Steve Siani Date: Sat, 14 Mar 2020 12:10:35 -0400 Subject: Update application properties for ErrorCatalog Issue-ID: CCSDK-2174 Signed-off-by: Steve Siani Change-Id: I8d8de812bb560ef2c01bc3bee8dd17f9d6ed1099 --- ms/error-catalog/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ms/error-catalog/README.md') diff --git a/ms/error-catalog/README.md b/ms/error-catalog/README.md index d6ae56d02..1df859574 100755 --- a/ms/error-catalog/README.md +++ b/ms/error-catalog/README.md @@ -10,6 +10,7 @@ # error.catalog.type=properties error.catalog.applicationId=cds error.catalog.type=properties +error.catalog.errorDefinitionDir=/opt/app/onap/config ``` ##### 2. Generate exception @@ -33,4 +34,7 @@ e = errorCatalogException.action("message") ... ``` -##### 4. Add a HTTP REST Exception handler \ No newline at end of file +##### 4. Add a HTTP REST Exception handler +@RestControllerAdvice("domain.here") +open class ExceptionHandler(private val errorCatalogService: ErrorCatalogService) : + ErrorCatalogExceptionHandler(errorCatalogService) \ No newline at end of file -- cgit 1.2.3-korg