Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
qlido committed Mar 18, 2024
2 parents 082309d + efbb489 commit 1c3f8ca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.project.bumawiki.global.config.scheduler;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

@Configuration
@EnableScheduling
public class SchedulerConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,19 @@ public enum ErrorCode {
//Image
NO_IMAGE(400, "IMG-400-1", "NO Image"),
IMAGE_NOT_FOUND_EXCEPTION(404, "IMG-404-1", "Image Not Found"),
S3_SAVE_EXCEPTION(500,"IMG-500-1" , "S3 Save Exception");
S3_SAVE_EXCEPTION(500,"IMG-500-1" , "S3 Save Exception"),

//coin
MONEY_NOT_ENOUGH(400, "COIN-400-1", "Money Is Not Enough"),
COIN_NOT_ENOUGH(400,"COIN-400-2" , "Coin Is Not Enough"),
TRADE_ALREADY_FINISHED(400, "COIN-400-3", "Trade Already Finished"),
ALREADY_AWARDED(400, "COIN-400-4", "Already Awarded"),
ALREADY_CREATED(401, "COIN-401-1", "Account Already Created"),
CANCEL_OTHERS_TRADE(403,"COIN-403-1" , "Cancel Others Trade"),
COIN_ACCOUNT_NOT_FOUND_EXCEPTION(404, "COIN-404-1", "Coin Account Not Found"),
PRICE_NOT_FOUND(404, "COIN-404-2", "Price Not Found"),
TRADE_NOT_FOUND(404, "COIN-404-3", "Trade Not Found"),
RANDOM_INSTANCE(500, "COIN-500-1", "Random Instance Create Exception");

private final int status;
private final String code;
Expand Down

0 comments on commit 1c3f8ca

Please sign in to comment.