package Ġcom . ek ino . oss . errors Ċ Ċ import Ġcom . ek ino . oss . errors . handler . Aws ExceptionHandler Ċ import Ġcom . ek ino . oss . errors . handler . Core ExceptionHandler Ċ import Ġcom . ek ino . oss . errors . handler . Data Rest ExceptionHandler Ċ import Ġcom . ek ino . oss . errors . handler . Security ExceptionHandler Ċ import Ġcom . ek ino . oss . errors . handler . Tx ExceptionHandler Ċ import Ġcom . ek ino . oss . errors . property . Errors Properties Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . autoconfigure . Auto Configure Before Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Class Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Web Application Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Web Application . Type . SERV LET Ċ import Ġorg . springframework . boot . autoconfigure . web . servlet . error . Error Mvc Auto Configuration Ċ import Ġorg . springframework . boot . context . properties . Enable Configuration Properties Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ /** Ċ Ġ* ĠWe Ġhave Ġinner Ġclass Ġfor Ġsome Ġconfig Ġbecause Ġusing Ġ[ Conditional On Class ] Ġon Ġ[ Bean ] Ġmethods Ġis Ġnot Ġrecommended . Ċ Ġ*/ Ċ @ Configuration ( proxy Bean Methods Ġ= Ġfalse ) Ċ @ Conditional On Web Application ( type Ġ= ĠSER V LET ) Ċ @ Auto Configure Before ( Error Mvc Auto Configuration :: class ) Ċ @ Enable Configuration Properties ( Errors Properties :: class ) Ċ class ĠErrors Auto Configuration ( ĊĠ Ġ@ param : Value ("\ ${ spring . application . name }") Ġprivate Ġval Ġapplication Name : ĠString , ĊĠ Ġprivate Ġval Ġproperties : ĠErrors Properties Ċ ) Ġ{ ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġcore ExceptionHandler (): ĠCore ExceptionHandler Ġ{ ĊĠĠĠ Ġreturn Ġobject Ġ: ĠCore ExceptionHandler ( application Name , Ġproperties ) Ġ{} ĊĠ Ġ} ĊĊĠ Ġ@ Configuration ( proxy Bean Methods Ġ= Ġfalse ) ĊĠ Ġ@ Conditional On Class ( name Ġ= Ġ[" org . springframework . security . authentication . Authentication Manager "]) ĊĠ Ġclass ĠSecurity Handler Configuration ( ĊĠĠĠ Ġ@ param : Value ("\ ${ spring . application . name }") Ġprivate Ġval Ġapplication Name : ĠString , ĊĠĠĠ Ġprivate Ġval Ġproperties : ĠErrors Properties ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġsecurity ExceptionHandler (): ĠSecurity ExceptionHandler Ġ{ ĊĠĠĠĠĠ Ġreturn Ġobject Ġ: ĠSecurity ExceptionHandler ( application Name , Ġproperties ) Ġ{} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Configuration ( proxy Bean Methods Ġ= Ġfalse ) ĊĠ Ġ@ Conditional On Class ( name Ġ= Ġ[" org . springframework . data . rest . core . config . Repository Rest Configuration "]) ĊĠ Ġclass ĠData Rest Handler Configuration ( ĊĠĠĠ Ġ@ param : Value ("\ ${ spring . application . name }") Ġprivate Ġval Ġapplication Name : ĠString , ĊĠĠĠ Ġprivate Ġval Ġproperties : ĠErrors Properties ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġdata Rest ExceptionHandler (): ĠData Rest ExceptionHandler Ġ{ ĊĠĠĠĠĠ Ġreturn Ġobject Ġ: ĠData Rest ExceptionHandler ( application Name , Ġproperties ) Ġ{} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Configuration ( proxy Bean Methods Ġ= Ġfalse ) ĊĠ Ġ@ Conditional On Class ( name Ġ= Ġ[" org . springframework . dao . Data Integr ity Violation Exception "]) ĊĠ Ġclass ĠTx Handler Configuration ( ĊĠĠĠ Ġ@ param : Value ("\ ${ spring . application . name }") Ġprivate Ġval Ġapplication Name : ĠString , ĊĠĠĠ Ġprivate Ġval Ġproperties : ĠErrors Properties ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġtx ExceptionHandler (): ĠTx ExceptionHandler Ġ{ ĊĠĠĠĠĠ Ġreturn Ġobject Ġ: ĠTx ExceptionHandler ( application Name , Ġproperties ) Ġ{} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Configuration ( proxy Bean Methods Ġ= Ġfalse ) ĊĠ Ġ@ Conditional On Class ( name Ġ= Ġ[" software . amazon . aw ssdk . services . s 3 . model . NoSuch Key Exception "]) ĊĠ Ġclass ĠAws Handler Configuration ( ĊĠĠĠ Ġ@ param : Value ("\ ${ spring . application . name }") Ġprivate Ġval Ġapplication Name : ĠString , ĊĠĠĠ Ġprivate Ġval Ġproperties : ĠErrors Properties ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġaws ExceptionHandler (): ĠAws ExceptionHandler Ġ{ ĊĠĠĠĠĠ Ġreturn Ġobject Ġ: ĠAws ExceptionHandler ( application Name , Ġproperties ) Ġ{} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ