This sounds very similar to the ideas in stoicism. Your feelings are your own creation and subsequently completely within your control. If you are feeling bad about something, it's not because of that something, but because you are -choosing- to feel bad.